- All Implemented Interfaces:
- java.awt.LayoutManager, java.io.Serializable, javax.swing.ScrollPaneConstants
public class ScrollPaneLayout
extends javax.swing.ScrollPaneLayout
This is an override of ScrollPaneLayout which fixes a bug that occurs when a
window containing a scroll pane is repacked. When that occurs,
viewport.getViewSize() returns the existing size of the client view window
rather than its preferred size, which can cause problems because the
existing size is not necessarily the final client size after the repack. To
fix this, this class reimplements the preferredLayoutSize method to always
use the preferred size of the view client.
- See Also:
- Serialized Form