KickJava   Java API By Example, From Geeks To Geeks.

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

javax.swing
Class JDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
See Also:
Top Examples, Source Code, XMLEncoder, Frame, JOptionPane, JRootPane

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


[1040]Simple message box dialog
By ketuvp { at } yahoo { dot } com on 2005/03/11 14:48:45  Rate
public class RSJdialog extends Frame {  
   private Button button; 
   public RSJdialog ( String msg )  {  
     setTitle ( "Warning" ) ; 
     //resize ( 400,100 ) ; 
     setLayout ( new BorderLayout (  )  ) ; 
     add ( new Label  ( msg ) ,BorderLayout.NORTH ) ; 
     button = new Button ( "Close" ) ; 
     add ( button,BorderLayout.SOUTH ) ; 
     addWindowListener ( new WindowAdapter (  )  {  
       public void windowClosing ( WindowEvent e )  {  
         dispose (  ) ; 
        }  
      }  ) ; 
     show (  ) ; 
    }  
   /*public boolean action ( Event evt, Object arg )  {  
     if  ( evt.target instanceof Button )  {  
       dispose (  ) ; 
      }  
     return true; 
    } */
 
   public static void main ( String [  ]  args )  {  
     //new Dialog ( "coucou" ) ; 
    }  
  } 


protected void addImpl(Component comp,
                       Object constraints,
                       int index)
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), IllegalArgumentException, Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


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


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


public Container getContentPane()
See Also:
setContentPane(java.awt.Container), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


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


public JMenuBar getJMenuBar()
See Also:
setJMenuBar(javax.swing.JMenuBar)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JLayeredPane getLayeredPane()
See Also:
setLayeredPane(javax.swing.JLayeredPane), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JRootPane getRootPane()
See Also:
setRootPane(javax.swing.JRootPane), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


protected boolean isRootPaneCheckingEnabled()
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), setLayout(java.awt.LayoutManager), addImpl(java.awt.Component, java.lang.Object, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog()
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Dialog owner)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Dialog owner,
               boolean modal)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Dialog owner,
               String title)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Dialog owner,
               String title,
               boolean modal)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Dialog owner,
               String title,
               boolean modal,
               GraphicsConfiguration gc)
        throws HeadlessException
See Also:
returns true., GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Frame owner)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Frame owner,
               boolean modal)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Frame owner,
               String title)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Frame owner,
               String title,
               boolean modal)
        throws HeadlessException
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public JDialog(Frame owner,
               String title,
               boolean modal,
               GraphicsConfiguration gc)
See Also:
JComponent.getDefaultLocale(), GraphicsEnvironment.isHeadless(), HeadlessException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


protected void processWindowEvent(WindowEvent e)
See Also:
setDefaultCloseOperation(int), Window
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void remove(Component comp)
See Also:
RootPaneContainer, Container.add(java.awt.Component), NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected JRootPane rootPane
See Also:
setRootPane(javax.swing.JRootPane), getRootPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected boolean rootPaneCheckingEnabled
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), isRootPaneCheckingEnabled()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


public void setDefaultCloseOperation(int operation)
See Also:
getDefaultCloseOperation(), Window.addWindowListener(java.awt.event.WindowListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
See Also:
LookAndFeel.getSupportsWindowDecorations()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setGlassPane(Component glassPane)
See Also:
getGlassPane(), RootPaneContainer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


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


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


public void setLayout(LayoutManager manager)
See Also:
RootPaneContainer, setRootPaneCheckingEnabled(boolean), Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void setRootPane(JRootPane root)
See Also:
getRootPane()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected void setRootPaneCheckingEnabled(boolean enabled)
See Also:
RootPaneContainer, isRootPaneCheckingEnabled(), setLayout(java.awt.LayoutManager), addImpl(java.awt.Component, java.lang.Object, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void update(Graphics g)
See Also:
Container
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags