javax.swing
Class JRootPane
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JRootPane
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:- Ronald Veldema (rveldema@cs.vu.nl)
contentPane
protected Container contentPane
glassPane
protected Component glassPane
layeredPane
protected JLayeredPane layeredPane
menuBar
protected JMenuBar menuBar
addImpl
protected void addImpl(java.awt.Component comp, java.lang.Object constraints, int index)
Parameters:
createRootLayout
protected LayoutManager createRootLayout()
getContentPane
public Container getContentPane()
getGlassPane
public Component getGlassPane()
getLayeredPane
public JLayeredPane getLayeredPane()
getUIClassID
public String getUIClassID()
setContentPane
public void setContentPane(java.awt.Container p)
Parameters:
setGlassPane
public void setGlassPane(java.awt.Component f)
Parameters:
setLayeredPane
public void setLayeredPane(javax.swing.JLayeredPane f)
Parameters: