KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > swing > JRootPane

javax.swing
Class JRootPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JRootPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
See Also:
Top Examples, Source Code, XMLEncoder, JLayeredPane, JMenuBar, JWindow, JFrame, JDialog, JApplet, JInternalFrame, BoxLayout

protected void addImpl(Component comp,
                       Object constraints,
                       int index)
See Also:
LayoutManager2, LayoutManager, Container.add(Component, java.lang.Object), Container.add(Component, int), Container.add(Component)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void addNotify()
See Also:
JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int COLOR_CHOOSER_DIALOG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1268]Frame with different WindowDecorationStyle
By Anonymous on 2005/01/20 13:33:07  Rate
The following JRootPane constants are used in setWindowDecorationStyle to get different title bar 
   COLOR_CHOOSER_DIALOG 
   ERROR_DIALOG 
   FILE_CHOOSER_DIALOG 
   FRAME 
   INFORMATION_DIALOG 
   NONE 
   PLAIN_DIALOG 
   QUESTION_DIALOG 
   WARNING_DIALOG 
  
  
 For example 
  
  
 JFrame frame = new JFrame ( "Hello World" ) ; 
 frame.setDefaultCloseOperation ( JFrame.EXIT_ON_CLOSE ) ; 
 frame.setUndecorated ( true ) ; 
 frame.getRootPane (  ) .setWindowDecorationStyle ( JRootPane.COLOR_CHOOSER_DIALOG ) ; 
 frame.setSize ( 300, 100 ) ; 
 frame.setVisible ( true ) ;


protected Container contentPane
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Container createContentPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Component createGlassPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JLayeredPane createLayeredPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected LayoutManager createRootLayout()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JButton defaultButton
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
protected javax.swing.JRootPane.DefaultAction defaultPressAction
See Also:
defaultButton
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
protected javax.swing.JRootPane.DefaultAction defaultReleaseAction
See Also:
defaultButton
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int ERROR_DIALOG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FILE_CHOOSER_DIALOG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int FRAME
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public AccessibleContext getAccessibleContext()
See Also:
JComponent, Accessible
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Container getContentPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JButton getDefaultButton()
See Also:
setDefaultButton(javax.swing.JButton)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Component getGlassPane()
See Also:
setGlassPane(java.awt.Component)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JMenuBar getJMenuBar()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JLayeredPane getLayeredPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public JMenuBar getMenuBar()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public RootPaneUI getUI()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getUIClassID()
See Also:
UIDefaults.getUI(javax.swing.JComponent), JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getWindowDecorationStyle()
See Also:
setWindowDecorationStyle(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected Component glassPane
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int INFORMATION_DIALOG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isOptimizedDrawingEnabled()
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean isValidateRoot()
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JRootPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JLayeredPane layeredPane
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JMenuBar menuBar
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int NONE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected String paramString()
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int PLAIN_DIALOG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int QUESTION_DIALOG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void removeNotify()
See Also:
addNotify(), JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setContentPane(Container content)
See Also:
IllegalComponentStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDefaultButton(JButton defaultButton)
See Also:
JButton.isDefaultButton()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setGlassPane(Component glass)
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMenuBar(JMenuBar menu)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLayeredPane(JLayeredPane layered)
See Also:
IllegalComponentStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


@Deprecated
public void setMenuBar(JMenuBar menu)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setUI(RootPaneUI ui)
See Also:
UIDefaults.getUI(javax.swing.JComponent)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setWindowDecorationStyle(int windowDecorationStyle)
See Also:
LookAndFeel.getSupportsWindowDecorations(), JFrame.setDefaultLookAndFeelDecorated(boolean), JDialog.setDefaultLookAndFeelDecorated(boolean), IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void updateUI()
See Also:
JComponent
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int WARNING_DIALOG
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags