javax.swing
Class JDialog

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.Component sample code for java.awt.Component definition code for java.awt.Component 
      extended by java.awt.Container sample code for java.awt.Container definition code for java.awt.Container 
          extended by java.awt.Window sample code for java.awt.Window definition code for java.awt.Window 
              extended by java.awt.Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog 
                  extended by javax.swing.JDialog
All Implemented Interfaces:
ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , MenuContainer sample code for java.awt.MenuContainer definition code for java.awt.MenuContainer , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer , WindowConstants sample code for javax.swing.WindowConstants definition code for javax.swing.WindowConstants

public class JDialog
extends Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog
implements WindowConstants sample code for javax.swing.WindowConstants definition code for javax.swing.WindowConstants , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer

The main class for creating a dialog window. You can use this class to create a custom dialog, or invoke the many class methods in JOptionPane sample code for javax.swing.JOptionPane definition code for javax.swing.JOptionPane to create a variety of standard dialogs. For information about creating dialogs, see The Java Tutorial section How to Make Dialogs.

The JDialog component contains a JRootPane as its only child. The contentPane should be the parent of any children of the JDialog. As a conveniance add and its variants, remove and setLayout have been overridden to forward to the contentPane as necessary. This means you can write:

       dialog.add(child);
 
And the child will be added to the contentPane. The contentPane is always non-null. Attempting to set it to null generates an exception. The default contentPane has a BorderLayout manager set on it. Refer to RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer for details on adding, removing and setting the LayoutManager of a JDialog.

Please see the JRootPane documentation for a complete description of the contentPane, glassPane, and layeredPane components.

In a multi-screen environment, you can create a JDialog on a different screen device than its owner. See Frame sample code for java.awt.Frame definition code for java.awt.Frame for more information.

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 JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
JOptionPane sample code for javax.swing.JOptionPane definition code for javax.swing.JOptionPane , JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer , Serialized Form

Nested Class Summary
protected  class JDialog.AccessibleJDialog sample code for javax.swing.JDialog.AccessibleJDialog definition code for javax.swing.JDialog.AccessibleJDialog
          This class implements accessibility support for the JDialog class.
 
Nested classes/interfaces inherited from class java.awt.Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog
Dialog.AccessibleAWTDialog sample code for java.awt.Dialog.AccessibleAWTDialog definition code for java.awt.Dialog.AccessibleAWTDialog
 
Nested classes/interfaces inherited from class java.awt.Window sample code for java.awt.Window definition code for java.awt.Window
Window.AccessibleAWTWindow sample code for java.awt.Window.AccessibleAWTWindow definition code for java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent , Component.BltBufferStrategy sample code for java.awt.Component.BltBufferStrategy definition code for java.awt.Component.BltBufferStrategy , Component.FlipBufferStrategy sample code for java.awt.Component.FlipBufferStrategy definition code for java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext accessibleContext sample code for javax.swing.JDialog.accessibleContext definition code for javax.swing.JDialog.accessibleContext
           
protected  JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane rootPane sample code for javax.swing.JDialog.rootPane definition code for javax.swing.JDialog.rootPane
           
protected  boolean rootPaneCheckingEnabled sample code for javax.swing.JDialog.rootPaneCheckingEnabled definition code for javax.swing.JDialog.rootPaneCheckingEnabled
          If true then calls to add and setLayout will be forwarded to the contentPane.
 
Fields inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
BOTTOM_ALIGNMENT sample code for java.awt.Component.BOTTOM_ALIGNMENT definition code for java.awt.Component.BOTTOM_ALIGNMENT , CENTER_ALIGNMENT sample code for java.awt.Component.CENTER_ALIGNMENT definition code for java.awt.Component.CENTER_ALIGNMENT , LEFT_ALIGNMENT sample code for java.awt.Component.LEFT_ALIGNMENT definition code for java.awt.Component.LEFT_ALIGNMENT , RIGHT_ALIGNMENT sample code for java.awt.Component.RIGHT_ALIGNMENT definition code for java.awt.Component.RIGHT_ALIGNMENT , TOP_ALIGNMENT sample code for java.awt.Component.TOP_ALIGNMENT definition code for java.awt.Component.TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants sample code for javax.swing.WindowConstants definition code for javax.swing.WindowConstants
DISPOSE_ON_CLOSE sample code for javax.swing.WindowConstants.DISPOSE_ON_CLOSE definition code for javax.swing.WindowConstants.DISPOSE_ON_CLOSE , DO_NOTHING_ON_CLOSE sample code for javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE definition code for javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE , EXIT_ON_CLOSE sample code for javax.swing.WindowConstants.EXIT_ON_CLOSE definition code for javax.swing.WindowConstants.EXIT_ON_CLOSE , HIDE_ON_CLOSE sample code for javax.swing.WindowConstants.HIDE_ON_CLOSE definition code for javax.swing.WindowConstants.HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver
ABORT sample code for java.awt.image.ImageObserver.ABORT definition code for java.awt.image.ImageObserver.ABORT , ALLBITS sample code for java.awt.image.ImageObserver.ALLBITS definition code for java.awt.image.ImageObserver.ALLBITS , ERROR sample code for java.awt.image.ImageObserver.ERROR definition code for java.awt.image.ImageObserver.ERROR , FRAMEBITS sample code for java.awt.image.ImageObserver.FRAMEBITS definition code for java.awt.image.ImageObserver.FRAMEBITS , HEIGHT sample code for java.awt.image.ImageObserver.HEIGHT definition code for java.awt.image.ImageObserver.HEIGHT , PROPERTIES sample code for java.awt.image.ImageObserver.PROPERTIES definition code for java.awt.image.ImageObserver.PROPERTIES , SOMEBITS sample code for java.awt.image.ImageObserver.SOMEBITS definition code for java.awt.image.ImageObserver.SOMEBITS , WIDTH sample code for java.awt.image.ImageObserver.WIDTH definition code for java.awt.image.ImageObserver.WIDTH
 
Constructor Summary
JDialog sample code for javax.swing.JDialog.JDialog() definition code for javax.swing.JDialog.JDialog() ()
          Creates a non-modal dialog without a title and without a specified Frame owner.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Dialog) definition code for javax.swing.JDialog.JDialog(java.awt.Dialog) (Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner)
          Creates a non-modal dialog without a title with the specified Dialog as its owner.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Dialog, boolean) definition code for javax.swing.JDialog.JDialog(java.awt.Dialog, boolean) (Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner, boolean modal)
          Creates a modal or non-modal dialog without a title and with the specified owner dialog.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Dialog, java.lang.String) definition code for javax.swing.JDialog.JDialog(java.awt.Dialog, java.lang.String) (Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner, String sample code for java.lang.String definition code for java.lang.String  title)
          Creates a non-modal dialog with the specified title and with the specified owner dialog.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Dialog, java.lang.String, boolean) definition code for javax.swing.JDialog.JDialog(java.awt.Dialog, java.lang.String, boolean) (Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner, String sample code for java.lang.String definition code for java.lang.String  title, boolean modal)
          Creates a modal or non-modal dialog with the specified title and the specified owner frame.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Dialog, java.lang.String, boolean, java.awt.GraphicsConfiguration) definition code for javax.swing.JDialog.JDialog(java.awt.Dialog, java.lang.String, boolean, java.awt.GraphicsConfiguration) (Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner, String sample code for java.lang.String definition code for java.lang.String  title, boolean modal, GraphicsConfiguration sample code for java.awt.GraphicsConfiguration definition code for java.awt.GraphicsConfiguration  gc)
          Creates a modal or non-modal dialog with the specified title, owner Dialog, and GraphicsConfiguration.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Frame) definition code for javax.swing.JDialog.JDialog(java.awt.Frame) (Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner)
          Creates a non-modal dialog without a title with the specified Frame as its owner.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Frame, boolean) definition code for javax.swing.JDialog.JDialog(java.awt.Frame, boolean) (Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner, boolean modal)
          Creates a modal or non-modal dialog without a title and with the specified owner Frame.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Frame, java.lang.String) definition code for javax.swing.JDialog.JDialog(java.awt.Frame, java.lang.String) (Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner, String sample code for java.lang.String definition code for java.lang.String  title)
          Creates a non-modal dialog with the specified title and with the specified owner frame.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Frame, java.lang.String, boolean) definition code for javax.swing.JDialog.JDialog(java.awt.Frame, java.lang.String, boolean) (Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner, String sample code for java.lang.String definition code for java.lang.String  title, boolean modal)
          Creates a modal or non-modal dialog with the specified title and the specified owner Frame.
JDialog sample code for javax.swing.JDialog.JDialog(java.awt.Frame, java.lang.String, boolean, java.awt.GraphicsConfiguration) definition code for javax.swing.JDialog.JDialog(java.awt.Frame, java.lang.String, boolean, java.awt.GraphicsConfiguration) (Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner, String sample code for java.lang.String definition code for java.lang.String  title, boolean modal, GraphicsConfiguration sample code for java.awt.GraphicsConfiguration definition code for java.awt.GraphicsConfiguration  gc)
          Creates a modal or non-modal dialog with the specified title, owner Frame, and GraphicsConfiguration.
 
Method Summary
protected  void addImpl sample code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int) definition code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int) (Component sample code for java.awt.Component definition code for java.awt.Component  comp, Object sample code for java.lang.Object definition code for java.lang.Object  constraints, int index)
          Adds the specified child Component.
protected  JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane createRootPane sample code for javax.swing.JDialog.createRootPane() definition code for javax.swing.JDialog.createRootPane() ()
          Called by the constructor methods to create the default rootPane.
protected  void dialogInit sample code for javax.swing.JDialog.dialogInit() definition code for javax.swing.JDialog.dialogInit() ()
          Called by the constructors to init the JDialog properly.
 AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext getAccessibleContext sample code for javax.swing.JDialog.getAccessibleContext() definition code for javax.swing.JDialog.getAccessibleContext() ()
          Gets the AccessibleContext associated with this JDialog.
 Container sample code for java.awt.Container definition code for java.awt.Container getContentPane sample code for javax.swing.JDialog.getContentPane() definition code for javax.swing.JDialog.getContentPane() ()
          Returns the contentPane object for this dialog.
 int getDefaultCloseOperation sample code for javax.swing.JDialog.getDefaultCloseOperation() definition code for javax.swing.JDialog.getDefaultCloseOperation() ()
          Returns the operation which occurs when the user initiates a "close" on this dialog.
 Component sample code for java.awt.Component definition code for java.awt.Component getGlassPane sample code for javax.swing.JDialog.getGlassPane() definition code for javax.swing.JDialog.getGlassPane() ()
          Returns the glassPane object for this dialog.
 JMenuBar sample code for javax.swing.JMenuBar definition code for javax.swing.JMenuBar getJMenuBar sample code for javax.swing.JDialog.getJMenuBar() definition code for javax.swing.JDialog.getJMenuBar() ()
          Returns the menubar set on this dialog.
 JLayeredPane sample code for javax.swing.JLayeredPane definition code for javax.swing.JLayeredPane getLayeredPane sample code for javax.swing.JDialog.getLayeredPane() definition code for javax.swing.JDialog.getLayeredPane() ()
          Returns the layeredPane object for this dialog.
 JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane getRootPane sample code for javax.swing.JDialog.getRootPane() definition code for javax.swing.JDialog.getRootPane() ()
          Returns the rootPane object for this dialog.
static boolean isDefaultLookAndFeelDecorated sample code for javax.swing.JDialog.isDefaultLookAndFeelDecorated() definition code for javax.swing.JDialog.isDefaultLookAndFeelDecorated() ()
          Returns true if newly created JDialogs should have their Window decorations provided by the current look and feel.
protected  boolean isRootPaneCheckingEnabled sample code for javax.swing.JDialog.isRootPaneCheckingEnabled() definition code for javax.swing.JDialog.isRootPaneCheckingEnabled() ()
          Returns whether calls to add and setLayout are forwarded to the contentPane.
protected  String sample code for java.lang.String definition code for java.lang.String paramString sample code for javax.swing.JDialog.paramString() definition code for javax.swing.JDialog.paramString() ()
          Returns a string representation of this JDialog.
protected  void processWindowEvent sample code for javax.swing.JDialog.processWindowEvent(java.awt.event.WindowEvent) definition code for javax.swing.JDialog.processWindowEvent(java.awt.event.WindowEvent) (WindowEvent sample code for java.awt.event.WindowEvent definition code for java.awt.event.WindowEvent  e)
          Handles window events depending on the state of the defaultCloseOperation property.
 void remove sample code for javax.swing.JDialog.remove(java.awt.Component) definition code for javax.swing.JDialog.remove(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          Removes the specified component from the container.
 void setContentPane sample code for javax.swing.JDialog.setContentPane(java.awt.Container) definition code for javax.swing.JDialog.setContentPane(java.awt.Container) (Container sample code for java.awt.Container definition code for java.awt.Container  contentPane)
          Sets the contentPane property.
 void setDefaultCloseOperation sample code for javax.swing.JDialog.setDefaultCloseOperation(int) definition code for javax.swing.JDialog.setDefaultCloseOperation(int) (int operation)
          Sets the operation which will happen by default when the user initiates a "close" on this dialog.
static void setDefaultLookAndFeelDecorated sample code for javax.swing.JDialog.setDefaultLookAndFeelDecorated(boolean) definition code for javax.swing.JDialog.setDefaultLookAndFeelDecorated(boolean) (boolean defaultLookAndFeelDecorated)
          Provides a hint as to whether or not newly created JDialogs should have their Window decorations (such as borders, widgets to close the window, title...) provided by the current look and feel.
 void setGlassPane sample code for javax.swing.JDialog.setGlassPane(java.awt.Component) definition code for javax.swing.JDialog.setGlassPane(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  glassPane)
          Sets the glassPane property.
 void setJMenuBar sample code for javax.swing.JDialog.setJMenuBar(javax.swing.JMenuBar) definition code for javax.swing.JDialog.setJMenuBar(javax.swing.JMenuBar) (JMenuBar sample code for javax.swing.JMenuBar definition code for javax.swing.JMenuBar  menu)
          Sets the menubar for this dialog.
 void setLayeredPane sample code for javax.swing.JDialog.setLayeredPane(javax.swing.JLayeredPane) definition code for javax.swing.JDialog.setLayeredPane(javax.swing.JLayeredPane) (JLayeredPane sample code for javax.swing.JLayeredPane definition code for javax.swing.JLayeredPane  layeredPane)
          Sets the layeredPane property.
 void setLayout sample code for javax.swing.JDialog.setLayout(java.awt.LayoutManager) definition code for javax.swing.JDialog.setLayout(java.awt.LayoutManager) (LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager  manager)
          Sets the LayoutManager.
protected  void setRootPane sample code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane) definition code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane) (JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
          Sets the rootPane property.
protected  void setRootPaneCheckingEnabled sample code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) definition code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) (boolean enabled)
          Sets whether calls to add and setLayout are forwarded to the contentPane.
 void update sample code for javax.swing.JDialog.update(java.awt.Graphics) definition code for javax.swing.JDialog.update(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
          Calls paint(g).
 
Methods inherited from class java.awt.Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog
addNotify sample code for java.awt.Dialog.addNotify() definition code for java.awt.Dialog.addNotify() , getTitle sample code for java.awt.Dialog.getTitle() definition code for java.awt.Dialog.getTitle() , hide sample code for java.awt.Dialog.hide() definition code for java.awt.Dialog.hide() , isModal sample code for java.awt.Dialog.isModal() definition code for java.awt.Dialog.isModal() , isResizable sample code for java.awt.Dialog.isResizable() definition code for java.awt.Dialog.isResizable() , isUndecorated sample code for java.awt.Dialog.isUndecorated() definition code for java.awt.Dialog.isUndecorated() , setModal sample code for java.awt.Dialog.setModal(boolean) definition code for java.awt.Dialog.setModal(boolean) , setResizable sample code for java.awt.Dialog.setResizable(boolean) definition code for java.awt.Dialog.setResizable(boolean) , setTitle sample code for java.awt.Dialog.setTitle(java.lang.String) definition code for java.awt.Dialog.setTitle(java.lang.String) , setUndecorated sample code for java.awt.Dialog.setUndecorated(boolean) definition code for java.awt.Dialog.setUndecorated(boolean) , show sample code for java.awt.Dialog.show() definition code for java.awt.Dialog.show()
 
Methods inherited from class java.awt.Window sample code for java.awt.Window definition code for java.awt.Window
addPropertyChangeListener sample code for java.awt.Window.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Window.addPropertyChangeListener(java.beans.PropertyChangeListener) , addPropertyChangeListener sample code for java.awt.Window.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Window.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , addWindowFocusListener sample code for java.awt.Window.addWindowFocusListener(java.awt.event.WindowFocusListener) definition code for java.awt.Window.addWindowFocusListener(java.awt.event.WindowFocusListener) , addWindowListener sample code for java.awt.Window.addWindowListener(java.awt.event.WindowListener) definition code for java.awt.Window.addWindowListener(java.awt.event.WindowListener) , addWindowStateListener sample code for java.awt.Window.addWindowStateListener(java.awt.event.WindowStateListener) definition code for java.awt.Window.addWindowStateListener(java.awt.event.WindowStateListener) , applyResourceBundle sample code for java.awt.Window.applyResourceBundle(java.util.ResourceBundle) definition code for java.awt.Window.applyResourceBundle(java.util.ResourceBundle) , applyResourceBundle sample code for java.awt.Window.applyResourceBundle(java.lang.String) definition code for java.awt.Window.applyResourceBundle(java.lang.String) , createBufferStrategy sample code for java.awt.Window.createBufferStrategy(int) definition code for java.awt.Window.createBufferStrategy(int) , createBufferStrategy sample code for java.awt.Window.createBufferStrategy(int, java.awt.BufferCapabilities) definition code for java.awt.Window.createBufferStrategy(int, java.awt.BufferCapabilities) , dispose sample code for java.awt.Window.dispose() definition code for java.awt.Window.dispose() , finalize sample code for java.awt.Window.finalize() definition code for java.awt.Window.finalize() , getBufferStrategy sample code for java.awt.Window.getBufferStrategy() definition code for java.awt.Window.getBufferStrategy() , getFocusableWindowState sample code for java.awt.Window.getFocusableWindowState() definition code for java.awt.Window.getFocusableWindowState() , getFocusCycleRootAncestor sample code for java.awt.Window.getFocusCycleRootAncestor() definition code for java.awt.Window.getFocusCycleRootAncestor() , getFocusOwner sample code for java.awt.Window.getFocusOwner() definition code for java.awt.Window.getFocusOwner() , getFocusTraversalKeys sample code for java.awt.Window.getFocusTraversalKeys(int) definition code for java.awt.Window.getFocusTraversalKeys(int) , getGraphicsConfiguration sample code for java.awt.Window.getGraphicsConfiguration() definition code for java.awt.Window.getGraphicsConfiguration() , getInputContext sample code for java.awt.Window.getInputContext() definition code for java.awt.Window.getInputContext() , getListeners sample code for java.awt.Window.getListeners(java.lang.Class) definition code for java.awt.Window.getListeners(java.lang.Class) , getLocale sample code for java.awt.Window.getLocale() definition code for java.awt.Window.getLocale() , getMostRecentFocusOwner sample code for java.awt.Window.getMostRecentFocusOwner() definition code for java.awt.Window.getMostRecentFocusOwner() , getOwnedWindows sample code for java.awt.Window.getOwnedWindows() definition code for java.awt.Window.getOwnedWindows() , getOwner sample code for java.awt.Window.getOwner() definition code for java.awt.Window.getOwner() , getToolkit sample code for java.awt.Window.getToolkit() definition code for java.awt.Window.getToolkit() , getWarningString sample code for java.awt.Window.getWarningString() definition code for java.awt.Window.getWarningString() , getWindowFocusListeners sample code for java.awt.Window.getWindowFocusListeners() definition code for java.awt.Window.getWindowFocusListeners() , getWindowListeners sample code for java.awt.Window.getWindowListeners() definition code for java.awt.Window.getWindowListeners() , getWindowStateListeners sample code for java.awt.Window.getWindowStateListeners() definition code for java.awt.Window.getWindowStateListeners() , isActive sample code for java.awt.Window.isActive() definition code for java.awt.Window.isActive() , isAlwaysOnTop sample code for java.awt.Window.isAlwaysOnTop() definition code for java.awt.Window.isAlwaysOnTop() , isFocusableWindow sample code for java.awt.Window.isFocusableWindow() definition code for java.awt.Window.isFocusableWindow() , isFocusCycleRoot sample code for java.awt.Window.isFocusCycleRoot() definition code for java.awt.Window.isFocusCycleRoot() , isFocused sample code for java.awt.Window.isFocused() definition code for java.awt.Window.isFocused() , isLocationByPlatform sample code for java.awt.Window.isLocationByPlatform() definition code for java.awt.Window.isLocationByPlatform() , isShowing sample code for java.awt.Window.isShowing() definition code for java.awt.Window.isShowing() , pack sample code for java.awt.Window.pack() definition code for java.awt.Window.pack() , postEvent sample code for java.awt.Window.postEvent(java.awt.Event) definition code for java.awt.Window.postEvent(java.awt.Event) , processEvent sample code for java.awt.Window.processEvent(java.awt.AWTEvent) definition code for java.awt.Window.processEvent(java.awt.AWTEvent) , processWindowFocusEvent sample code for java.awt.Window.processWindowFocusEvent(java.awt.event.WindowEvent) definition code for java.awt.Window.processWindowFocusEvent(java.awt.event.WindowEvent) , processWindowStateEvent sample code for java.awt.Window.processWindowStateEvent(java.awt.event.WindowEvent) definition code for java.awt.Window.processWindowStateEvent(java.awt.event.WindowEvent) , removeWindowFocusListener sample code for java.awt.Window.removeWindowFocusListener(java.awt.event.WindowFocusListener) definition code for java.awt.Window.removeWindowFocusListener(java.awt.event.WindowFocusListener) , removeWindowListener sample code for java.awt.Window.removeWindowListener(java.awt.event.WindowListener) definition code for java.awt.Window.removeWindowListener(java.awt.event.WindowListener) , removeWindowStateListener sample code for java.awt.Window.removeWindowStateListener(java.awt.event.WindowStateListener) definition code for java.awt.Window.removeWindowStateListener(java.awt.event.WindowStateListener) , setAlwaysOnTop sample code for java.awt.Window.setAlwaysOnTop(boolean) definition code for java.awt.Window.setAlwaysOnTop(boolean) , setBounds sample code for java.awt.Window.setBounds(int, int, int, int) definition code for java.awt.Window.setBounds(int, int, int, int) , setCursor sample code for java.awt.Window.setCursor(java.awt.Cursor) definition code for java.awt.Window.setCursor(java.awt.Cursor) , setFocusableWindowState sample code for java.awt.Window.setFocusableWindowState(boolean) definition code for java.awt.Window.setFocusableWindowState(boolean) , setFocusCycleRoot sample code for java.awt.Window.setFocusCycleRoot(boolean) definition code for java.awt.Window.setFocusCycleRoot(boolean) , setLocationByPlatform sample code for java.awt.Window.setLocationByPlatform(boolean) definition code for java.awt.Window.setLocationByPlatform(boolean) , setLocationRelativeTo sample code for java.awt.Window.setLocationRelativeTo(java.awt.Component) definition code for java.awt.Window.setLocationRelativeTo(java.awt.Component) , toBack sample code for java.awt.Window.toBack() definition code for java.awt.Window.toBack() , toFront sample code for java.awt.Window.toFront() definition code for java.awt.Window.toFront()
 
Methods inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
add sample code for java.awt.Container.add(java.awt.Component) definition code for java.awt.Container.add(java.awt.Component) , add sample code for java.awt.Container.add(java.awt.Component, int) definition code for java.awt.Container.add(java.awt.Component, int) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) , add sample code for java.awt.Container.add(java.lang.String, java.awt.Component) definition code for java.awt.Container.add(java.lang.String, java.awt.Component) , addContainerListener sample code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) , applyComponentOrientation sample code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) , areFocusTraversalKeysSet sample code for java.awt.Container.areFocusTraversalKeysSet(int) definition code for java.awt.Container.areFocusTraversalKeysSet(int) , countComponents sample code for java.awt.Container.countComponents() definition code for java.awt.Container.countComponents() , deliverEvent sample code for java.awt.Container.deliverEvent(java.awt.Event) definition code for java.awt.Container.deliverEvent(java.awt.Event) , doLayout sample code for java.awt.Container.doLayout() definition code for java.awt.Container.doLayout() , findComponentAt sample code for java.awt.Container.findComponentAt(int, int) definition code for java.awt.Container.findComponentAt(int, int) , findComponentAt sample code for java.awt.Container.findComponentAt(java.awt.Point) definition code for java.awt.Container.findComponentAt(java.awt.Point) , getAlignmentX sample code for java.awt.Container.getAlignmentX() definition code for java.awt.Container.getAlignmentX() , getAlignmentY sample code for java.awt.Container.getAlignmentY() definition code for java.awt.Container.getAlignmentY() , getComponent sample code for java.awt.Container.getComponent(int) definition code for java.awt.Container.getComponent(int) , getComponentAt sample code for java.awt.Container.getComponentAt(int, int) definition code for java.awt.Container.getComponentAt(int, int) , getComponentAt sample code for java.awt.Container.getComponentAt(java.awt.Point) definition code for java.awt.Container.getComponentAt(java.awt.Point) , getComponentCount sample code for java.awt.Container.getComponentCount() definition code for java.awt.Container.getComponentCount() , getComponents sample code for java.awt.Container.getComponents() definition code for java.awt.Container.getComponents() , getComponentZOrder sample code for java.awt.Container.getComponentZOrder(java.awt.Component) definition code for java.awt.Container.getComponentZOrder(java.awt.Component) , getContainerListeners sample code for java.awt.Container.getContainerListeners() definition code for java.awt.Container.getContainerListeners() , getFocusTraversalPolicy sample code for java.awt.Container.getFocusTraversalPolicy() definition code for java.awt.Container.getFocusTraversalPolicy() , getInsets sample code for java.awt.Container.getInsets() definition code for java.awt.Container.getInsets() , getLayout sample code for java.awt.Container.getLayout() definition code for java.awt.Container.getLayout() , getMaximumSize sample code for java.awt.Container.getMaximumSize() definition code for java.awt.Container.getMaximumSize() , getMinimumSize sample code for java.awt.Container.getMinimumSize() definition code for java.awt.Container.getMinimumSize() , getMousePosition sample code for java.awt.Container.getMousePosition(boolean) definition code for java.awt.Container.getMousePosition(boolean) , getPreferredSize sample code for java.awt.Container.getPreferredSize() definition code for java.awt.Container.getPreferredSize() , insets sample code for java.awt.Container.insets() definition code for java.awt.Container.insets() , invalidate sample code for java.awt.Container.invalidate() definition code for java.awt.Container.invalidate() , isAncestorOf sample code for java.awt.Container.isAncestorOf(java.awt.Component) definition code for java.awt.Container.isAncestorOf(java.awt.Component) , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot(java.awt.Container) definition code for java.awt.Container.isFocusCycleRoot(java.awt.Container) , isFocusTraversalPolicyProvider sample code for java.awt.Container.isFocusTraversalPolicyProvider() definition code for java.awt.Container.isFocusTraversalPolicyProvider() , isFocusTraversalPolicySet sample code for java.awt.Container.isFocusTraversalPolicySet() definition code for java.awt.Container.isFocusTraversalPolicySet() , layout sample code for java.awt.Container.layout() definition code for java.awt.Container.layout() , list sample code for java.awt.Container.list(java.io.PrintStream, int) definition code for java.awt.Container.list(java.io.PrintStream, int) , list sample code for java.awt.Container.list(java.io.PrintWriter, int) definition code for java.awt.Container.list(java.io.PrintWriter, int) , locate sample code for java.awt.Container.locate(int, int) definition code for java.awt.Container.locate(int, int) , minimumSize sample code for java.awt.Container.minimumSize() definition code for java.awt.Container.minimumSize() , paint sample code for java.awt.Container.paint(java.awt.Graphics) definition code for java.awt.Container.paint(java.awt.Graphics) , paintComponents sample code for java.awt.Container.paintComponents(java.awt.Graphics) definition code for java.awt.Container.paintComponents(java.awt.Graphics) , preferredSize sample code for java.awt.Container.preferredSize() definition code for java.awt.Container.preferredSize() , print sample code for java.awt.Container.print(java.awt.Graphics) definition code for java.awt.Container.print(java.awt.Graphics) , printComponents sample code for java.awt.Container.printComponents(java.awt.Graphics) definition code for java.awt.Container.printComponents(java.awt.Graphics) , processContainerEvent sample code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) definition code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) , remove sample code for java.awt.Container.remove(int) definition code for java.awt.Container.remove(int) , removeAll sample code for java.awt.Container.removeAll() definition code for java.awt.Container.removeAll() , removeContainerListener sample code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) , removeNotify sample code for java.awt.Container.removeNotify() definition code for java.awt.Container.removeNotify() , setComponentZOrder sample code for java.awt.Container.setComponentZOrder(java.awt.Component, int) definition code for java.awt.Container.setComponentZOrder(java.awt.Component, int) , setFocusTraversalKeys sample code for java.awt.Container.setFocusTraversalKeys(int, java.util.Set) definition code for java.awt.Container.setFocusTraversalKeys(int, java.util.Set) , setFocusTraversalPolicy sample code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) definition code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) , setFocusTraversalPolicyProvider sample code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) definition code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) , setFont sample code for java.awt.Container.setFont(java.awt.Font) definition code for java.awt.Container.setFont(java.awt.Font) , transferFocusBackward sample code for java.awt.Container.transferFocusBackward() definition code for java.awt.Container.transferFocusBackward() , transferFocusDownCycle sample code for java.awt.Container.transferFocusDownCycle() definition code for java.awt.Container.transferFocusDownCycle() , validate sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() , validateTree sample code for java.awt.Container.validateTree() definition code for java.awt.Container.validateTree()
 
Methods inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
action sample code for java.awt.Component.action(java.awt.Event, java.lang.Object) definition code for java.awt.Component.action(java.awt.Event, java.lang.Object) , add sample code for java.awt.Component.add(java.awt.PopupMenu) definition code for java.awt.Component.add(java.awt.PopupMenu) , addComponentListener sample code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) , addFocusListener sample code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) , addHierarchyBoundsListener sample code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , addHierarchyListener sample code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) , addInputMethodListener sample code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) , addKeyListener sample code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) , addMouseListener sample code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) , addMouseMotionListener sample code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) , addMouseWheelListener sample code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) , bounds sample code for java.awt.Component.bounds() definition code for java.awt.Component.bounds() , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , coalesceEvents sample code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) definition code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) , contains sample code for java.awt.Component.contains(int, int) definition code for java.awt.Component.contains(int, int) , contains sample code for java.awt.Component.contains(java.awt.Point) definition code for java.awt.Component.contains(java.awt.Point) , createImage sample code for java.awt.Component.createImage(java.awt.image.ImageProducer) definition code for java.awt.Component.createImage(java.awt.image.ImageProducer) , createImage sample code for java.awt.Component.createImage(int, int) definition code for java.awt.Component.createImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int) definition code for java.awt.Component.createVolatileImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) definition code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) , disable sample code for java.awt.Component.disable() definition code for java.awt.Component.disable() , disableEvents sample code for java.awt.Component.disableEvents(long) definition code for java.awt.Component.disableEvents(long) , dispatchEvent sample code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) , enable sample code for java.awt.Component.enable() definition code for java.awt.Component.enable() , enable sample code for java.awt.Component.enable(boolean) definition code for java.awt.Component.enable(boolean) , enableEvents sample code for java.awt.Component.enableEvents(long) definition code for java.awt.Component.enableEvents(long) , enableInputMethods sample code for java.awt.Component.enableInputMethods(boolean) definition code for java.awt.Component.enableInputMethods(boolean) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, boolean, boolean) definition code for java.awt.Component.firePropertyChange(java.lang.String, boolean, boolean) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) definition code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, char, char) definition code for java.awt.Component.firePropertyChange(java.lang.String, char, char) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, double, double) definition code for java.awt.Component.firePropertyChange(java.lang.String, double, double) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, float, float) definition code for java.awt.Component.firePropertyChange(java.lang.String, float, float) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, int, int) definition code for java.awt.Component.firePropertyChange(java.lang.String, int, int) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, long, long) definition code for java.awt.Component.firePropertyChange(java.lang.String, long, long) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, short, short) definition code for java.awt.Component.firePropertyChange(java.lang.String, short, short) , getBackground sample code for java.awt.Component.getBackground() definition code for java.awt.Component.getBackground() , getBounds sample code for java.awt.Component.getBounds() definition code for java.awt.Component.getBounds() , getBounds sample code for java.awt.Component.getBounds(java.awt.Rectangle) definition code for java.awt.Component.getBounds(java.awt.Rectangle) , getColorModel sample code for java.awt.Component.getColorModel() definition code for java.awt.Component.getColorModel() , getComponentListeners sample code for java.awt.Component.getComponentListeners() definition code for java.awt.Component.getComponentListeners() , getComponentOrientation sample code for java.awt.Component.getComponentOrientation() definition code for java.awt.Component.getComponentOrientation() , getCursor sample code for java.awt.Component.getCursor() definition code for java.awt.Component.getCursor() , getDropTarget sample code for java.awt.Component.getDropTarget() definition code for java.awt.Component.getDropTarget() , getFocusListeners sample code for java.awt.Component.getFocusListeners() definition code for java.awt.Component.getFocusListeners() , getFocusTraversalKeysEnabled sample code for java.awt.Component.getFocusTraversalKeysEnabled() definition code for java.awt.Component.getFocusTraversalKeysEnabled() , getFont sample code for java.awt.Component.getFont() definition code for java.awt.Component.getFont() , getFontMetrics sample code for java.awt.Component.getFontMetrics(java.awt.Font) definition code for java.awt.Component.getFontMetrics(java.awt.Font) , getForeground sample code for java.awt.Component.getForeground() definition code for java.awt.Component.getForeground() , getGraphics sample code for java.awt.Component.getGraphics() definition code for java.awt.Component.getGraphics() , getHeight sample code for java.awt.Component.getHeight() definition code for java.awt.Component.getHeight() , getHierarchyBoundsListeners sample code for java.awt.Component.getHierarchyBoundsListeners() definition code for java.awt.Component.getHierarchyBoundsListeners() , getHierarchyListeners sample code for java.awt.Component.getHierarchyListeners() definition code for java.awt.Component.getHierarchyListeners() , getIgnoreRepaint sample code for java.awt.Component.getIgnoreRepaint() definition code for java.awt.Component.getIgnoreRepaint() , getInputMethodListeners sample code for java.awt.Component.getInputMethodListeners() definition code for java.awt.Component.getInputMethodListeners() , getInputMethodRequests sample code for java.awt.Component.getInputMethodRequests() definition code for java.awt.Component.getInputMethodRequests() , getKeyListeners sample code for java.awt.Component.getKeyListeners() definition code for java.awt.Component.getKeyListeners() , getLocation sample code for java.awt.Component.getLocation() definition code for java.awt.Component.getLocation() , getLocation sample code for java.awt.Component.getLocation(java.awt.Point) definition code for java.awt.Component.getLocation(java.awt.Point) , getLocationOnScreen sample code for java.awt.Component.getLocationOnScreen() definition code for java.awt.Component.getLocationOnScreen() , getMouseListeners sample code for java.awt.Component.getMouseListeners() definition code for java.awt.Component.getMouseListeners() , getMouseMotionListeners sample code for java.awt.Component.getMouseMotionListeners() definition code for java.awt.Component.getMouseMotionListeners() , getMousePosition sample code for java.awt.Component.getMousePosition() definition code for java.awt.Component.getMousePosition() , getMouseWheelListeners sample code for java.awt.Component.getMouseWheelListeners() definition code for java.awt.Component.getMouseWheelListeners() , getName sample code for java.awt.Component.getName() definition code for java.awt.Component.getName() , getParent sample code for java.awt.Component.getParent() definition code for java.awt.Component.getParent() , getPeer sample code for java.awt.Component.getPeer() definition code for java.awt.Component.getPeer() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners() definition code for java.awt.Component.getPropertyChangeListeners() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners(java.lang.String) definition code for java.awt.Component.getPropertyChangeListeners(java.lang.String) , getSize sample code for java.awt.Component.getSize() definition code for java.awt.Component.getSize() , getSize sample code for java.awt.Component.getSize(java.awt.Dimension) definition code for java.awt.Component.getSize(java.awt.Dimension) , getTreeLock sample code for java.awt.Component.getTreeLock() definition code for java.awt.Component.getTreeLock() , getWidth sample code for java.awt.Component.getWidth() definition code for java.awt.Component.getWidth() , getX sample code for java.awt.Component.getX() definition code for java.awt.Component.getX() , getY sample code for java.awt.Component.getY() definition code for java.awt.Component.getY() , gotFocus sample code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) , handleEvent sample code for java.awt.Component.handleEvent(java.awt.Event) definition code for java.awt.Component.handleEvent(java.awt.Event) , hasFocus sample code for java.awt.Component.hasFocus() definition code for java.awt.Component.hasFocus() , imageUpdate sample code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) , inside sample code for java.awt.Component.inside(int, int) definition code for java.awt.Component.inside(int, int) , isBackgroundSet sample code for java.awt.Component.isBackgroundSet() definition code for java.awt.Component.isBackgroundSet() , isCursorSet sample code for java.awt.Component.isCursorSet() definition code for java.awt.Component.isCursorSet() , isDisplayable sample code for java.awt.Component.isDisplayable() definition code for java.awt.Component.isDisplayable() , isDoubleBuffered sample code for java.awt.Component.isDoubleBuffered() definition code for java.awt.Component.isDoubleBuffered() , isEnabled sample code for java.awt.Component.isEnabled() definition code for java.awt.Component.isEnabled() , isFocusable sample code for java.awt.Component.isFocusable() definition code for java.awt.Component.isFocusable() , isFocusOwner sample code for java.awt.Component.isFocusOwner() definition code for java.awt.Component.isFocusOwner() , isFocusTraversable sample code for java.awt.Component.isFocusTraversable() definition code for java.awt.Component.isFocusTraversable() , isFontSet sample code for java.awt.Component.isFontSet() definition code for java.awt.Component.isFontSet() , isForegroundSet sample code for java.awt.Component.isForegroundSet() definition code for java.awt.Component.isForegroundSet() , isLightweight sample code for java.awt.Component.isLightweight() definition code for java.awt.Component.isLightweight() , isMaximumSizeSet sample code for java.awt.Component.isMaximumSizeSet() definition code for java.awt.Component.isMaximumSizeSet() , isMinimumSizeSet sample code for java.awt.Component.isMinimumSizeSet() definition code for java.awt.Component.isMinimumSizeSet() , isOpaque sample code for java.awt.Component.isOpaque() definition code for java.awt.Component.isOpaque() , isPreferredSizeSet sample code for java.awt.Component.isPreferredSizeSet() definition code for java.awt.Component.isPreferredSizeSet() , isValid sample code for java.awt.Component.isValid() definition code for java.awt.Component.isValid() , isVisible sample code for java.awt.Component.isVisible() definition code for java.awt.Component.isVisible() , keyDown sample code for java.awt.Component.keyDown(java.awt.Event, int) definition code for java.awt.Component.keyDown(java.awt.Event, int) , keyUp sample code for java.awt.Component.keyUp(java.awt.Event, int) definition code for java.awt.Component.keyUp(java.awt.Event, int) , list sample code for java.awt.Component.list() definition code for java.awt.Component.list() , list sample code for java.awt.Component.list(java.io.PrintStream) definition code for java.awt.Component.list(java.io.PrintStream) , list sample code for java.awt.Component.list(java.io.PrintWriter) definition code for java.awt.Component.list(java.io.PrintWriter) , location sample code for java.awt.Component.location() definition code for java.awt.Component.location() , lostFocus sample code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) , mouseDown sample code for java.awt.Component.mouseDown(java.awt.Event, int, int) definition code for java.awt.Component.mouseDown(java.awt.Event, int, int) , mouseDrag sample code for java.awt.Component.mouseDrag(java.awt.Event, int, int) definition code for java.awt.Component.mouseDrag(java.awt.Event, int, int) , mouseEnter sample code for java.awt.Component.mouseEnter(java.awt.Event, int, int) definition code for java.awt.Component.mouseEnter(java.awt.Event, int, int) , mouseExit sample code for java.awt.Component.mouseExit(java.awt.Event, int, int) definition code for java.awt.Component.mouseExit(java.awt.Event, int, int) , mouseMove sample code for java.awt.Component.mouseMove(java.awt.Event, int, int) definition code for java.awt.Component.mouseMove(java.awt.Event, int, int) , mouseUp sample code for java.awt.Component.mouseUp(java.awt.Event, int, int) definition code for java.awt.Component.mouseUp(java.awt.Event, int, int) , move sample code for java.awt.Component.move(int, int) definition code for java.awt.Component.move(int, int) , nextFocus sample code for java.awt.Component.nextFocus() definition code for java.awt.Component.nextFocus() , paintAll sample code for java.awt.Component.paintAll(java.awt.Graphics) definition code for java.awt.Component.paintAll(java.awt.Graphics) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , printAll sample code for java.awt.Component.printAll(java.awt.Graphics) definition code for java.awt.Component.printAll(java.awt.Graphics) , processComponentEvent sample code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) definition code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) , processFocusEvent sample code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) definition code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) , processHierarchyBoundsEvent sample code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) , processHierarchyEvent sample code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) , processInputMethodEvent sample code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) definition code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) , processKeyEvent sample code for java.awt.Component.processKeyEvent(java.awt.event.KeyEvent) definition code for java.awt.Component.processKeyEvent(java.awt.event.KeyEvent) , processMouseEvent sample code for java.awt.Component.processMouseEvent(java.awt.event.MouseEvent) definition code for java.awt.Component.processMouseEvent(java.awt.event.MouseEvent) , processMouseMotionEvent sample code for java.awt.Component.processMouseMotionEvent(java.awt.event.MouseEvent) definition code for java.awt.Component.processMouseMotionEvent(java.awt.event.MouseEvent) , processMouseWheelEvent sample code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) definition code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) , remove sample code for java.awt.Component.remove(java.awt.MenuComponent) definition code for java.awt.Component.remove(java.awt.MenuComponent) , removeComponentListener sample code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) , removeFocusListener sample code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) , removeHierarchyBoundsListener sample code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , removeHierarchyListener sample code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) , removeInputMethodListener sample code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) , removeKeyListener sample code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) , removeMouseListener sample code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) , removeMouseMotionListener sample code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) , removeMouseWheelListener sample code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , repaint sample code for java.awt.Component.repaint() definition code for java.awt.Component.repaint() , repaint sample code for java.awt.Component.repaint(int, int, int, int) definition code for java.awt.Component.repaint(int, int, int, int) , repaint sample code for java.awt.Component.repaint(long) definition code for java.awt.Component.repaint(long) , repaint sample code for java.awt.Component.repaint(long, int, int, int, int) definition code for java.awt.Component.repaint(long, int, int, int, int) , requestFocus sample code for java.awt.Component.requestFocus() definition code for java.awt.Component.requestFocus() , requestFocus sample code for java.awt.Component.requestFocus(boolean) definition code for java.awt.Component.requestFocus(boolean) , requestFocusInWindow sample code for java.awt.Component.requestFocusInWindow() definition code for java.awt.Component.requestFocusInWindow() , requestFocusInWindow sample code for java.awt.Component.requestFocusInWindow(boolean) definition code for java.awt.Component.requestFocusInWindow(boolean) , reshape sample code for java.awt.Component.reshape(int, int, int, int) definition code for java.awt.Component.reshape(int, int, int, int) , resize sample code for java.awt.Component.resize(java.awt.Dimension) definition code for java.awt.Component.resize(java.awt.Dimension) , resize sample code for java.awt.Component.resize(int, int) definition code for java.awt.Component.resize(int, int) , setBackground sample code for java.awt.Component.setBackground(java.awt.Color) definition code for java.awt.Component.setBackground(java.awt.Color) , setBounds sample code for java.awt.Component.setBounds(java.awt.Rectangle) definition code for java.awt.Component.setBounds(java.awt.Rectangle) , setComponentOrientation sample code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) , setDropTarget sample code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) definition code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) , setEnabled sample code for java.awt.Component.setEnabled(boolean) definition code for java.awt.Component.setEnabled(boolean) , setFocusable sample code for java.awt.Component.setFocusable(boolean) definition code for java.awt.Component.setFocusable(boolean) , setFocusTraversalKeysEnabled sample code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) definition code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) , setForeground sample code for java.awt.Component.setForeground(java.awt.Color) definition code for java.awt.Component.setForeground(java.awt.Color) , setIgnoreRepaint sample code for java.awt.Component.setIgnoreRepaint(boolean) definition code for java.awt.Component.setIgnoreRepaint(boolean) , setLocale sample code for java.awt.Component.setLocale(java.util.Locale) definition code for java.awt.Component.setLocale(java.util.Locale) , setLocation sample code for java.awt.Component.setLocation(int, int) definition code for java.awt.Component.setLocation(int, int) , setLocation sample code for java.awt.Component.setLocation(java.awt.Point) definition code for java.awt.Component.setLocation(java.awt.Point) , setMaximumSize sample code for java.awt.Component.setMaximumSize(java.awt.Dimension) definition code for java.awt.Component.setMaximumSize(java.awt.Dimension) , setMinimumSize sample code for java.awt.Component.setMinimumSize(java.awt.Dimension) definition code for java.awt.Component.setMinimumSize(java.awt.Dimension) , setName sample code for java.awt.Component.setName(java.lang.String) definition code for java.awt.Component.setName(java.lang.String) , setPreferredSize sample code for java.awt.Component.setPreferredSize(java.awt.Dimension) definition code for java.awt.Component.setPreferredSize(java.awt.Dimension) , setSize sample code for java.awt.Component.setSize(java.awt.Dimension) definition code for java.awt.Component.setSize(java.awt.Dimension) , setSize sample code for java.awt.Component.setSize(int, int) definition code for java.awt.Component.setSize(int, int) , setVisible sample code for java.awt.Component.setVisible(boolean) definition code for java.awt.Component.setVisible(boolean) , show sample code for java.awt.Component.show(boolean) definition code for java.awt.Component.show(boolean) , size sample code for java.awt.Component.size() definition code for java.awt.Component.size() , toString sample code for java.awt.Component.toString() definition code for java.awt.Component.toString() , transferFocus sample code for java.awt.Component.transferFocus() definition code for java.awt.Component.transferFocus() , transferFocusUpCycle sample code for java.awt.Component.transferFocusUpCycle() definition code for java.awt.Component.transferFocusUpCycle()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

rootPane sample code for javax.swing.JDialog.rootPane

protected JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  rootPane
See Also:
getRootPane() sample code for javax.swing.JDialog.getRootPane() definition code for javax.swing.JDialog.getRootPane() , setRootPane(javax.swing.JRootPane) sample code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane) definition code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane)

rootPaneCheckingEnabled sample code for javax.swing.JDialog.rootPaneCheckingEnabled

protected boolean rootPaneCheckingEnabled
If true then calls to add and setLayout will be forwarded to the contentPane. This is initially false, but is set to true when the JDialog is constructed.

See Also:
isRootPaneCheckingEnabled() sample code for javax.swing.JDialog.isRootPaneCheckingEnabled() definition code for javax.swing.JDialog.isRootPaneCheckingEnabled() , setRootPaneCheckingEnabled(boolean) sample code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) definition code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer

accessibleContext sample code for javax.swing.JDialog.accessibleContext

protected AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  accessibleContext
Constructor Detail

JDialog sample code for javax.swing.JDialog() definition code for javax.swing.JDialog()

public JDialog()
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a non-modal dialog without a title and without a specified Frame owner. A shared, hidden frame will be set as the owner of the dialog.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Frame) definition code for javax.swing.JDialog(java.awt.Frame)

public JDialog(Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a non-modal dialog without a title with the specified Frame as its owner. If owner is null, a shared, hidden frame will be set as the owner of the dialog.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the Frame from which the dialog is displayed
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Frame, boolean) definition code for javax.swing.JDialog(java.awt.Frame, boolean)

public JDialog(Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner,
               boolean modal)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a modal or non-modal dialog without a title and with the specified owner Frame. If owner is null, a shared, hidden frame will be set as the owner of the dialog.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the Frame from which the dialog is displayed
modal - true for a modal dialog, false for one that allows others windows to be active at the same time
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Frame, java.lang.String) definition code for javax.swing.JDialog(java.awt.Frame, java.lang.String)

public JDialog(Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner,
               String sample code for java.lang.String definition code for java.lang.String  title)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a non-modal dialog with the specified title and with the specified owner frame. If owner is null, a shared, hidden frame will be set as the owner of the dialog.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the Frame from which the dialog is displayed
title - the String to display in the dialog's title bar
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Frame, java.lang.String, boolean) definition code for javax.swing.JDialog(java.awt.Frame, java.lang.String, boolean)

public JDialog(Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner,
               String sample code for java.lang.String definition code for java.lang.String  title,
               boolean modal)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a modal or non-modal dialog with the specified title and the specified owner Frame. If owner is null, a shared, hidden frame will be set as the owner of this dialog. All constructors defer to this one.

NOTE: Any popup components (JComboBox, JPopupMenu, JMenuBar) created within a modal dialog will be forced to be lightweight.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the Frame from which the dialog is displayed
title - the String to display in the dialog's title bar
modal - true for a modal dialog, false for one that allows other windows to be active at the same time
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Frame, java.lang.String, boolean, java.awt.GraphicsConfiguration) definition code for javax.swing.JDialog(java.awt.Frame, java.lang.String, boolean, java.awt.GraphicsConfiguration)

public JDialog(Frame sample code for java.awt.Frame definition code for java.awt.Frame  owner,
               String sample code for java.lang.String definition code for java.lang.String  title,
               boolean modal,
               GraphicsConfiguration sample code for java.awt.GraphicsConfiguration definition code for java.awt.GraphicsConfiguration  gc)
Creates a modal or non-modal dialog with the specified title, owner Frame, and GraphicsConfiguration.

NOTE: Any popup components (JComboBox, JPopupMenu, JMenuBar) created within a modal dialog will be forced to be lightweight.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the Frame from which the dialog is displayed
title - the String to display in the dialog's title bar
modal - true for a modal dialog, false for one that allows other windows to be active at the same time
gc - the GraphicsConfiguration of the target screen device. If gc is null, the same GraphicsConfiguration as the owning Frame is used.
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
Since:
1.4
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Dialog) definition code for javax.swing.JDialog(java.awt.Dialog)

public JDialog(Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a non-modal dialog without a title with the specified Dialog as its owner.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the non-null Dialog from which the dialog is displayed
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Dialog, boolean) definition code for javax.swing.JDialog(java.awt.Dialog, boolean)

public JDialog(Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner,
               boolean modal)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a modal or non-modal dialog without a title and with the specified owner dialog.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the non-null Dialog from which the dialog is displayed
modal - true for a modal dialog, false for one that allows other windows to be active at the same time
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Dialog, java.lang.String) definition code for javax.swing.JDialog(java.awt.Dialog, java.lang.String)

public JDialog(Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner,
               String sample code for java.lang.String definition code for java.lang.String  title)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a non-modal dialog with the specified title and with the specified owner dialog.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the non-null Dialog from which the dialog is displayed
title - the String to display in the dialog's title bar
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Dialog, java.lang.String, boolean) definition code for javax.swing.JDialog(java.awt.Dialog, java.lang.String, boolean)

public JDialog(Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner,
               String sample code for java.lang.String definition code for java.lang.String  title,
               boolean modal)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a modal or non-modal dialog with the specified title and the specified owner frame.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the non-null Dialog from which the dialog is displayed
title - the String to display in the dialog's title bar
modal - true for a modal dialog, false for one that allows other windows to be active at the same time
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , JComponent.getDefaultLocale() sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()

JDialog sample code for javax.swing.JDialog(java.awt.Dialog, java.lang.String, boolean, java.awt.GraphicsConfiguration) definition code for javax.swing.JDialog(java.awt.Dialog, java.lang.String, boolean, java.awt.GraphicsConfiguration)

public JDialog(Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog  owner,
               String sample code for java.lang.String definition code for java.lang.String  title,
               boolean modal,
               GraphicsConfiguration sample code for java.awt.GraphicsConfiguration definition code for java.awt.GraphicsConfiguration  gc)
        throws HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Creates a modal or non-modal dialog with the specified title, owner Dialog, and GraphicsConfiguration.

NOTE: Any popup components (JComboBox, JPopupMenu, JMenuBar) created within a modal dialog will be forced to be lightweight.

This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale.

Parameters:
owner - the Dialog from which the dialog is displayed
title - the String to display in the dialog's title bar
modal - true for a modal dialog, false for one that allows other windows to be active at the same time
gc - the GraphicsConfiguration of the target screen device. If gc is null, the same GraphicsConfiguration as the owning Dialog is used.
Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless()
Since:
1.4
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , returns true. sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale()
Method Detail

dialogInit sample code for javax.swing.JDialog.dialogInit() definition code for javax.swing.JDialog.dialogInit()

protected void dialogInit()
Called by the constructors to init the JDialog properly.


createRootPane sample code for javax.swing.JDialog.createRootPane() definition code for javax.swing.JDialog.createRootPane()

protected JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  createRootPane()
Called by the constructor methods to create the default rootPane.


processWindowEvent sample code for javax.swing.JDialog.processWindowEvent(java.awt.event.WindowEvent) definition code for javax.swing.JDialog.processWindowEvent(java.awt.event.WindowEvent)

protected void processWindowEvent(WindowEvent sample code for java.awt.event.WindowEvent definition code for java.awt.event.WindowEvent  e)
Handles window events depending on the state of the defaultCloseOperation property.

Overrides:
processWindowEvent sample code for java.awt.Window.processWindowEvent(java.awt.event.WindowEvent) definition code for java.awt.Window.processWindowEvent(java.awt.event.WindowEvent) in class Window sample code for java.awt.Window definition code for java.awt.Window
Parameters:
e - the window event
See Also:
setDefaultCloseOperation(int) sample code for javax.swing.JDialog.setDefaultCloseOperation(int) definition code for javax.swing.JDialog.setDefaultCloseOperation(int)

setDefaultCloseOperation sample code for javax.swing.JDialog.setDefaultCloseOperation(int) definition code for javax.swing.JDialog.setDefaultCloseOperation(int)

public void setDefaultCloseOperation(int operation)
Sets the operation which will happen by default when the user initiates a "close" on this dialog. The possible choices are:

The value is set to HIDE_ON_CLOSE by default.

Note: When the last displayable window within the Java virtual machine (VM) is disposed of, the VM may terminate. See AWT Threading Issues for more information.

See Also:
Window.addWindowListener(java.awt.event.WindowListener) sample code for java.awt.Window.addWindowListener(java.awt.event.WindowListener) definition code for java.awt.Window.addWindowListener(java.awt.event.WindowListener) , getDefaultCloseOperation() sample code for javax.swing.JDialog.getDefaultCloseOperation() definition code for javax.swing.JDialog.getDefaultCloseOperation()

getDefaultCloseOperation sample code for javax.swing.JDialog.getDefaultCloseOperation() definition code for javax.swing.JDialog.getDefaultCloseOperation()

public int getDefaultCloseOperation()
Returns the operation which occurs when the user initiates a "close" on this dialog.

Returns:
an integer indicating the window-close operation
See Also:
setDefaultCloseOperation(int) sample code for javax.swing.JDialog.setDefaultCloseOperation(int) definition code for javax.swing.JDialog.setDefaultCloseOperation(int)

update sample code for javax.swing.JDialog.update(java.awt.Graphics) definition code for javax.swing.JDialog.update(java.awt.Graphics)

public void update(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
Calls paint(g). This method was overridden to prevent an unnecessary call to clear the background.

Overrides:
update sample code for java.awt.Container.update(java.awt.Graphics) definition code for java.awt.Container.update(java.awt.Graphics) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
g - the Graphics context in which to paint
See Also:
Component.update(Graphics) sample code for java.awt.Component.update(java.awt.Graphics) definition code for java.awt.Component.update(java.awt.Graphics)

setJMenuBar sample code for javax.swing.JDialog.setJMenuBar(javax.swing.JMenuBar) definition code for javax.swing.JDialog.setJMenuBar(javax.swing.JMenuBar)

public void setJMenuBar(JMenuBar sample code for javax.swing.JMenuBar definition code for javax.swing.JMenuBar  menu)
Sets the menubar for this dialog.

Parameters:
menu - the menubar being placed in the dialog
See Also:
getJMenuBar() sample code for javax.swing.JDialog.getJMenuBar() definition code for javax.swing.JDialog.getJMenuBar()

getJMenuBar sample code for javax.swing.JDialog.getJMenuBar() definition code for javax.swing.JDialog.getJMenuBar()

public JMenuBar sample code for javax.swing.JMenuBar definition code for javax.swing.JMenuBar  getJMenuBar()
Returns the menubar set on this dialog.

See Also:
setJMenuBar(javax.swing.JMenuBar) sample code for javax.swing.JDialog.setJMenuBar(javax.swing.JMenuBar) definition code for javax.swing.JDialog.setJMenuBar(javax.swing.JMenuBar)

isRootPaneCheckingEnabled sample code for javax.swing.JDialog.isRootPaneCheckingEnabled() definition code for javax.swing.JDialog.isRootPaneCheckingEnabled()

protected boolean isRootPaneCheckingEnabled()
Returns whether calls to add and setLayout are forwarded to the contentPane.

Returns:
true if add and setLayout are fowarded; false otherwise
See Also:
addImpl(java.awt.Component, java.lang.Object, int) sample code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int) definition code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int) , setLayout(java.awt.LayoutManager) sample code for javax.swing.JDialog.setLayout(java.awt.LayoutManager) definition code for javax.swing.JDialog.setLayout(java.awt.LayoutManager) , setRootPaneCheckingEnabled(boolean) sample code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) definition code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer

setRootPaneCheckingEnabled sample code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) definition code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean)

protected void setRootPaneCheckingEnabled(boolean enabled)
Sets whether calls to add and setLayout are forwarded to the contentPane.

Parameters:
enabled - true if add and setLayout are forwarded, false if they should operate directly on the JDialog.
See Also:
addImpl(java.awt.Component, java.lang.Object, int) sample code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int) definition code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int) , setLayout(java.awt.LayoutManager) sample code for javax.swing.JDialog.setLayout(java.awt.LayoutManager) definition code for javax.swing.JDialog.setLayout(java.awt.LayoutManager) , isRootPaneCheckingEnabled() sample code for javax.swing.JDialog.isRootPaneCheckingEnabled() definition code for javax.swing.JDialog.isRootPaneCheckingEnabled() , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer

addImpl sample code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int) definition code for javax.swing.JDialog.addImpl(java.awt.Component, java.lang.Object, int)

protected void addImpl(Component sample code for java.awt.Component definition code for java.awt.Component  comp,
                       Object sample code for java.lang.Object definition code for java.lang.Object  constraints,
                       int index)
Adds the specified child Component. This method is overridden to conditionally forwad calls to the contentPane. By default, children are added to the contentPane instead of the frame, refer to RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer for details.

Overrides:
addImpl sample code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
comp - the component to be enhanced
constraints - the constraints to be respected
index - the index
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if index is invalid
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if adding the container's parent to itself
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if adding a window to a container
See Also:
setRootPaneCheckingEnabled(boolean) sample code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) definition code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer

remove sample code for javax.swing.JDialog.remove(java.awt.Component) definition code for javax.swing.JDialog.remove(java.awt.Component)

public void remove(Component sample code for java.awt.Component definition code for java.awt.Component  comp)
Removes the specified component from the container. If comp is not the rootPane, this will forward the call to the contentPane. This will do nothing if comp is not a child of the JDialog or contentPane.

Overrides:
remove sample code for java.awt.Container.remove(java.awt.Component) definition code for java.awt.Container.remove(java.awt.Component) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
comp - the component to be removed
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if comp is null
See Also:
Container.add(java.awt.Component) sample code for java.awt.Container.add(java.awt.Component) definition code for java.awt.Container.add(java.awt.Component) , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer

setLayout sample code for javax.swing.JDialog.setLayout(java.awt.LayoutManager) definition code for javax.swing.JDialog.setLayout(java.awt.LayoutManager)

public void setLayout(LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager  manager)
Sets the LayoutManager. Overridden to conditionally forward the call to the contentPane. Refer to RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer for more information.

Overrides:
setLayout sample code for java.awt.Container.setLayout(java.awt.LayoutManager) definition code for java.awt.Container.setLayout(java.awt.LayoutManager) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
manager - the LayoutManager
See Also:
setRootPaneCheckingEnabled(boolean) sample code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) definition code for javax.swing.JDialog.setRootPaneCheckingEnabled(boolean) , RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer

getRootPane sample code for javax.swing.JDialog.getRootPane() definition code for javax.swing.JDialog.getRootPane()

public JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  getRootPane()
Returns the rootPane object for this dialog.

Specified by:
getRootPane sample code for javax.swing.RootPaneContainer.getRootPane() definition code for javax.swing.RootPaneContainer.getRootPane() in interface RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer
Returns:
this components single JRootPane child.
See Also:
setRootPane(javax.swing.JRootPane) sample code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane) definition code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane) , RootPaneContainer.getRootPane() sample code for javax.swing.RootPaneContainer.getRootPane() definition code for javax.swing.RootPaneContainer.getRootPane()

setRootPane sample code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane) definition code for javax.swing.JDialog.setRootPane(javax.swing.JRootPane)

protected void setRootPane(JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane  root)
Sets the rootPane property. This method is called by the constructor.

Parameters:
root - the rootPane object for this dialog
See Also:
getRootPane() sample code for javax.swing.JDialog.getRootPane() definition code for javax.swing.JDialog.getRootPane()

getContentPane sample code for javax.swing.JDialog.getContentPane() definition code for javax.swing.JDialog.getContentPane()

public Container sample code for java.awt.Container definition code for java.awt.Container  getContentPane()
Returns the contentPane object for this dialog.

Specified by:
getContentPane sample code for javax.swing.RootPaneContainer.getContentPane() definition code for javax.swing.RootPaneContainer.getContentPane() in interface RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer
Returns:
the contentPane property
See Also:
setContentPane(java.awt.Container) sample code for javax.swing.JDialog.setContentPane(java.awt.Container) definition code for javax.swing.JDialog.setContentPane(java.awt.Container) , RootPaneContainer.getContentPane() sample code for javax.swing.RootPaneContainer.getContentPane() definition code for javax.swing.RootPaneContainer.getContentPane()

setContentPane sample code for javax.swing.JDialog.setContentPane(java.awt.Container) definition code for javax.swing.JDialog.setContentPane(java.awt.Container)

public void setContentPane(Container sample code for java.awt.Container definition code for java.awt.Container  contentPane)
Sets the contentPane property. This method is called by the constructor.

Swing's painting architecture requires an opaque JComponent in the containment hiearchy. This is typically provided by the content pane. If you replace the content pane it is recommended you replace it with an opaque JComponent.

Specified by:
setContentPane sample code for javax.swing.RootPaneContainer.setContentPane(java.awt.Container) definition code for javax.swing.RootPaneContainer.setContentPane(java.awt.Container) in interface RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer
Parameters:
contentPane - the contentPane object for this dialog
Throws:
IllegalComponentStateException sample code for java.awt.IllegalComponentStateException definition code for java.awt.IllegalComponentStateException - (a runtime exception) if the content pane parameter is null
See Also:
JRootPane sample code for javax.swing.JRootPane definition code for javax.swing.JRootPane , getContentPane() sample code for javax.swing.JDialog.getContentPane() definition code for javax.swing.JDialog.getContentPane() , RootPaneContainer.setContentPane(java.awt.Container) sample code for javax.swing.RootPaneContainer.setContentPane(java.awt.Container) definition code for javax.swing.RootPaneContainer.setContentPane(java.awt.Container)

getLayeredPane sample code for javax.swing.JDialog.getLayeredPane() definition code for javax.swing.JDialog.getLayeredPane()

public JLayeredPane sample code for javax.swing.JLayeredPane definition code for javax.swing.JLayeredPane  getLayeredPane()
Returns the layeredPane object for this dialog.

Specified by:
getLayeredPane sample code for javax.swing.RootPaneContainer.getLayeredPane() definition code for javax.swing.RootPaneContainer.getLayeredPane() in interface RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer
Returns:
the layeredPane property
See Also:
setLayeredPane(javax.swing.JLayeredPane) sample code for javax.swing.JDialog.setLayeredPane(javax.swing.JLayeredPane) definition code for javax.swing.JDialog.setLayeredPane(javax.swing.JLayeredPane) , RootPaneContainer.getLayeredPane() sample code for javax.swing.RootPaneContainer.getLayeredPane() definition code for javax.swing.RootPaneContainer.getLayeredPane()

setLayeredPane sample code for javax.swing.JDialog.setLayeredPane(javax.swing.JLayeredPane) definition code for javax.swing.JDialog.setLayeredPane(javax.swing.JLayeredPane)

public void setLayeredPane(JLayeredPane sample code for javax.swing.JLayeredPane definition code for javax.swing.JLayeredPane  layeredPane)
Sets the layeredPane property. This method is called by the constructor.

Specified by:
setLayeredPane sample code for javax.swing.RootPaneContainer.setLayeredPane(javax.swing.JLayeredPane) definition code for javax.swing.RootPaneContainer.setLayeredPane(javax.swing.JLayeredPane) in interface RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer
Parameters:
layeredPane - the new layeredPane property
Throws:
IllegalComponentStateException sample code for java.awt.IllegalComponentStateException definition code for java.awt.IllegalComponentStateException - (a runtime exception) if the layered pane parameter is null
See Also:
getLayeredPane() sample code for javax.swing.JDialog.getLayeredPane() definition code for javax.swing.JDialog.getLayeredPane() , RootPaneContainer.setLayeredPane(javax.swing.JLayeredPane) sample code for javax.swing.RootPaneContainer.setLayeredPane(javax.swing.JLayeredPane) definition code for javax.swing.RootPaneContainer.setLayeredPane(javax.swing.JLayeredPane)

getGlassPane sample code for javax.swing.JDialog.getGlassPane() definition code for javax.swing.JDialog.getGlassPane()

public Component sample code for java.awt.Component definition code for java.awt.Component  getGlassPane()
Returns the glassPane object for this dialog.

Specified by:
getGlassPane sample code for javax.swing.RootPaneContainer.getGlassPane() definition code for javax.swing.RootPaneContainer.getGlassPane() in interface RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer
Returns:
the glassPane property
See Also:
setGlassPane(java.awt.Component) sample code for javax.swing.JDialog.setGlassPane(java.awt.Component) definition code for javax.swing.JDialog.setGlassPane(java.awt.Component) , RootPaneContainer.getGlassPane() sample code for javax.swing.RootPaneContainer.getGlassPane() definition code for javax.swing.RootPaneContainer.getGlassPane()

setGlassPane sample code for javax.swing.JDialog.setGlassPane(java.awt.Component) definition code for javax.swing.JDialog.setGlassPane(java.awt.Component)

public void setGlassPane(Component sample code for java.awt.Component definition code for java.awt.Component  glassPane)
Sets the glassPane property. This method is called by the constructor.

Specified by:
setGlassPane sample code for javax.swing.RootPaneContainer.setGlassPane(java.awt.Component) definition code for javax.swing.RootPaneContainer.setGlassPane(java.awt.Component) in interface RootPaneContainer sample code for javax.swing.RootPaneContainer definition code for javax.swing.RootPaneContainer
Parameters:
glassPane - the glassPane object for this dialog
See Also:
getGlassPane() sample code for javax.swing.JDialog.getGlassPane() definition code for javax.swing.JDialog.getGlassPane() , RootPaneContainer.setGlassPane(java.awt.Component) sample code for javax.swing.RootPaneContainer.setGlassPane(java.awt.Component) definition code for javax.swing.RootPaneContainer.setGlassPane(java.awt.Component)

setDefaultLookAndFeelDecorated sample code for javax.swing.JDialog.setDefaultLookAndFeelDecorated(boolean) definition code for javax.swing.JDialog.setDefaultLookAndFeelDecorated(boolean)

public static void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
Provides a hint as to whether or not newly created JDialogs should have their Window decorations (such as borders, widgets to close the window, title...) provided by the current look and feel. If defaultLookAndFeelDecorated is true, the current LookAndFeel supports providing window decorations, and the current window manager supports undecorated windows, then newly created JDialogs will have their Window decorations provided by the current LookAndFeel. Otherwise, newly created JDialogs will have their Window decorations provided by the current window manager.

You can get the same effect on a single JDialog by doing the following:

    JDialog dialog = new JDialog();
    dialog.setUndecorated(true);
    dialog.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
 

Parameters:
defaultLookAndFeelDecorated - A hint as to whether or not current look and feel should provide window decorations
Since:
1.4
See Also:
LookAndFeel.getSupportsWindowDecorations() sample code for javax.swing.LookAndFeel.getSupportsWindowDecorations() definition code for javax.swing.LookAndFeel.getSupportsWindowDecorations()

isDefaultLookAndFeelDecorated sample code for javax.swing.JDialog.isDefaultLookAndFeelDecorated() definition code for javax.swing.JDialog.isDefaultLookAndFeelDecorated()

public static boolean isDefaultLookAndFeelDecorated()
Returns true if newly created JDialogs should have their Window decorations provided by the current look and feel. This is only a hint, as certain look and feels may not support this feature.

Returns:
true if look and feel should provide Window decorations.
Since:
1.4

paramString sample code for javax.swing.JDialog.paramString() definition code for javax.swing.JDialog.paramString()

protected String sample code for java.lang.String definition code for java.lang.String  paramString()
Returns a string representation of this JDialog. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Overrides:
paramString sample code for java.awt.Dialog.paramString() definition code for java.awt.Dialog.paramString() in class Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog
Returns:
a string representation of this JDialog.

getAccessibleContext sample code for javax.swing.JDialog.getAccessibleContext() definition code for javax.swing.JDialog.getAccessibleContext()

public AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  getAccessibleContext()
Gets the AccessibleContext associated with this JDialog. For JDialogs, the AccessibleContext takes the form of an AccessibleJDialog. A new AccessibleJDialog instance is created if necessary.

Specified by:
getAccessibleContext sample code for javax.accessibility.Accessible.getAccessibleContext() definition code for javax.accessibility.Accessible.getAccessibleContext() in interface Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible
Overrides:
getAccessibleContext sample code for java.awt.Dialog.getAccessibleContext() definition code for java.awt.Dialog.getAccessibleContext() in class Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog
Returns:
an AccessibleJDialog that serves as the AccessibleContext of this JDialog