Where Am I? Class Hierarchy (JFC) All Classes (JFC)

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

ViewportLayout()

Method Index

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

Constructors

ViewportLayout
 public ViewportLayout()

Methods

addLayoutComponent
 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)

Where Am I? Class Hierarchy (JFC) All Classes (JFC)