All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.ViewportLayout

java.lang.Object
   |
   +----com.sun.java.swing.ViewportLayout

public class ViewportLayout
extends Object
implements LayoutManager, Serializable
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.


Constructor Index

 o ViewportLayout()

Method Index

 o addLayoutComponent(String, Component)
 o layoutContainer(Container)
 o minimumLayoutSize(Container)
 o preferredLayoutSize(Container)
 o removeLayoutComponent(Component)

Constructors

 o ViewportLayout
 public ViewportLayout()

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component c)
 o removeLayoutComponent
 public void removeLayoutComponent(Component c)
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container parent)
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
 o layoutContainer
 public void layoutContainer(Container parent)

All Packages  Class Hierarchy  This Package  Previous  Next  Index