Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.swing

Class JRootPane.RootLayout

java.lang.Object
|
+--java.awt.BorderLayout
   |
   +--javax.swing.JRootPane.RootLayout


protected static class JRootPane.RootLayout

extends BorderLayout

This class is where JComponents are added to. Unlike awt where you could just say frame.add(), with swing you need to say frame.getRootPane() (which delivers an instance of this class) and add your components to that. It is implemented by several 'layers' (pane() should be read as plane()) each on top of the others where you can add components to. (getContentPane(), getGlassPane(), getLayeredPane())

Author:

Method Summary

java.awt.DimensionpreferredLayoutSize(java.awt.Container c)

This class is where JComponents are added to.

Method Details

preferredLayoutSize

public Dimension preferredLayoutSize(java.awt.Container c)

This class is where JComponents are added to. Unlike awt where you could just say frame.add(), with swing you need to say frame.getRootPane() (which delivers an instance of this class) and add your components to that. It is implemented by several 'layers' (pane() should be read as plane()) each on top of the others where you can add components to. (getContentPane(), getGlassPane(), getLayeredPane())

Author:Parameters: