java.lang.Object
javax.swing.JRootPane.RootLayout
- All Implemented Interfaces:
- LayoutManager,- LayoutManager2,- Serializable
- Enclosing class:
- JRootPane
protected class JRootPane.RootLayout extends Object implements LayoutManager2, Serializable
A custom layout manager that is responsible for the layout of
 layeredPane, glassPane, and menuBar.
 
 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 applications running
 the same version of Swing.  As of 1.4, support for long term storage
 of all JavaBeans™
 has been added to the java.beans package.
 Please see XMLEncoder.
- 
Constructor SummaryConstructors Modifier Constructor Description protectedRootLayout()
- 
Method SummaryModifier and Type Method Description voidlayoutContainer(Container parent)Instructs the layout manager to perform the layout for the specified container.DimensionmaximumLayoutSize(Container target)Returns the maximum amount of space the layout can use.DimensionminimumLayoutSize(Container parent)Returns the minimum amount of space the layout needs.DimensionpreferredLayoutSize(Container parent)Returns the amount of space the layout would like to have.Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface java.awt.LayoutManager2addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout
- 
Constructor Details- 
RootLayoutprotected RootLayout()
 
- 
- 
Method Details- 
preferredLayoutSizeReturns the amount of space the layout would like to have.- Specified by:
- preferredLayoutSizein interface- LayoutManager
- Parameters:
- parent- the Container for which this layout manager is being used
- Returns:
- a Dimension object containing the layout's preferred size
- See Also:
- LayoutManager.minimumLayoutSize(java.awt.Container)
 
- 
minimumLayoutSizeReturns the minimum amount of space the layout needs.- Specified by:
- minimumLayoutSizein interface- LayoutManager
- Parameters:
- parent- the Container for which this layout manager is being used
- Returns:
- a Dimension object containing the layout's minimum size
- See Also:
- LayoutManager.preferredLayoutSize(java.awt.Container)
 
- 
maximumLayoutSizeReturns the maximum amount of space the layout can use.- Specified by:
- maximumLayoutSizein interface- LayoutManager2
- Parameters:
- target- the Container for which this layout manager is being used
- Returns:
- a Dimension object containing the layout's maximum size
- See Also:
- Component.getMaximumSize(),- LayoutManager
 
- 
layoutContainerInstructs the layout manager to perform the layout for the specified container.- Specified by:
- layoutContainerin interface- LayoutManager
- Parameters:
- parent- the Container for which this layout manager is being used
 
 
-