java.lang.Object | +----com.sun.java.swing.ViewportLayout
The default layout manager for JViewport. JViewportLayout defines a policy for layout that should be useful for most applications. The viewport makes its view as the same size as the viewport, however it will not make the view smaller than its minimum size. As the viewport grows the view is kept bottom justified until the entire view is visible, subsequently the view is kept top justified.
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
public ViewportLayout()
public void addLayoutComponent(String name, Component c)removeLayoutComponent
public void removeLayoutComponent(Component c)preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)layoutContainer
public void layoutContainer(Container parent)