Home » openjdk-7 » javax » swing » [javadoc | source]
javax.swing
public class: JDialog [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Container
         java.awt.Window
            java.awt.Dialog
               javax.swing.JDialog

All Implemented Interfaces:
    HasGetTransferHandler, Accessible, RootPaneContainer, WindowConstants, MenuContainer, Serializable, ImageObserver

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 to create a variety of standard dialogs. For information about creating dialogs, see The Java Tutorial section How to Make Dialogs.

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

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

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

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

Warning: Swing is not thread safe. For more information see Swing's Threading Policy.

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 {@code java.beans} package. Please see java.beans.XMLEncoder .

Nested Class Summary:
protected class  JDialog.AccessibleJDialog  This class implements accessibility support for the {@code JDialog} class. It provides an implementation of the Java Accessibility API appropriate to dialog user-interface elements. 
Field Summary
protected  JRootPane rootPane     
protected  boolean rootPaneCheckingEnabled    If true then calls to {@code add} and {@code setLayout} will be forwarded to the {@code contentPane}. This is initially false, but is set to true when the {@code JDialog} is constructed. 
protected  AccessibleContext accessibleContext     
Fields inherited from java.awt.Dialog:
resizable,  undecorated,  DEFAULT_MODALITY_TYPE,  modal,  modalityType,  modalDialogs,  blockedWindows,  title,  isInHide,  isInDispose
Fields inherited from java.awt.Window:
warningString,  icons,  systemSyncLWRequests,  syncLWRequests,  beforeFirstShow,  OPENED,  state,  ownedWindowList,  showWithParent,  modalBlocker,  modalExclusionType,  windowListener,  windowStateListener,  windowFocusListener,  inputContext,  isInShow,  isTrayIconWindow,  anchor
Fields inherited from java.awt.Container:
layoutMgr,  containerListener,  listeningChildren,  listeningBoundsChildren,  descendantsCount,  preserveBackgroundColor,  INCLUDE_SELF,  SEARCH_HEAVYWEIGHTS,  modalComp,  modalAppContext
Fields inherited from java.awt.Component:
peer,  parent,  appContext,  x,  y,  width,  height,  foreground,  background,  font,  peerFont,  cursor,  locale,  bufferStrategy,  ignoreRepaint,  visible,  enabled,  dropTarget,  popups,  focusTraversalKeys,  LOCK,  minSize,  minSizeSet,  prefSize,  prefSizeSet,  maxSize,  maxSizeSet,  componentOrientation,  newEventsOnly,  componentListener,  focusListener,  hierarchyListener,  hierarchyBoundsListener,  keyListener,  mouseListener,  mouseMotionListener,  mouseWheelListener,  inputMethodListener,  windowClosingException,  actionListenerK,  adjustmentListenerK,  componentListenerK,  containerListenerK,  focusListenerK,  itemListenerK,  keyListenerK,  mouseListenerK,  mouseMotionListenerK,  mouseWheelListenerK,  textListenerK,  ownedWindowK,  windowListenerK,  inputMethodListenerK,  hierarchyListenerK,  hierarchyBoundsListenerK,  windowStateListenerK,  windowFocusListenerK,  eventMask,  isInc,  incRate,  TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  LEFT_ALIGNMENT,  RIGHT_ALIGNMENT,  isPacked,  backgroundEraseDisabled,  eventCache,  accessibleContext
Constructor:
 public JDialog() 
 public JDialog(Frame owner) 
    Creates a modeless dialog with the specified {@code Frame} as its owner and an empty title. If {@code owner} is {@code 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 {@code JComponent.getDefaultLocale}.

    NOTE: This constructor does not allow you to create an unowned {@code JDialog}. To create an unowned {@code JDialog} you must use either the {@code JDialog(Window)} or {@code JDialog(Dialog)} constructor with an argument of {@code null}.

    Parameters:
    owner - the {@code Frame} from which the dialog is displayed
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Dialog owner) 
    Creates a modeless dialog with the specified {@code Dialog} as its owner and an empty title.

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

    Parameters:
    owner - the owner {@code Dialog} from which the dialog is displayed or {@code null} if this dialog has no owner
    Throws:
    HeadlessException - {@code if GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Window owner) 
    Creates a modeless dialog with the specified {@code Window} as its owner and an empty title.

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

    Parameters:
    owner - the {@code Window} from which the dialog is displayed or {@code null} if this dialog has no owner
    Throws:
    IllegalArgumentException - if the {@code owner} is not an instance of Dialog or Frame
    IllegalArgumentException - if the {@code owner}'s {@code GraphicsConfiguration} is not from a screen device
    HeadlessException - when {@code GraphicsEnvironment.isHeadless()} returns {@code true}
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    since: 1.6 -
 public JDialog(Frame owner,
    boolean modal) 
    Creates a dialog with an empty title and the specified modality and {@code Frame} as its owner. If {@code owner} is {@code 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 {@code JComponent.getDefaultLocale}.

    NOTE: This constructor does not allow you to create an unowned {@code JDialog}. To create an unowned {@code JDialog} you must use either the {@code JDialog(Window)} or {@code JDialog(Dialog)} constructor with an argument of {@code null}.

    Parameters:
    owner - the {@code Frame} from which the dialog is displayed
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If {@code true}, the modality type property is set to {@code DEFAULT_MODALITY_TYPE}, otherwise the dialog is modeless.
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Frame owner,
    String title) 
    Creates a modeless dialog with the specified title and with the specified owner frame. If {@code owner} is {@code 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 {@code JComponent.getDefaultLocale}.

    NOTE: This constructor does not allow you to create an unowned {@code JDialog}. To create an unowned {@code JDialog} you must use either the {@code JDialog(Window)} or {@code JDialog(Dialog)} constructor with an argument of {@code null}.

    Parameters:
    owner - the {@code Frame} from which the dialog is displayed
    title - the {@code String} to display in the dialog's title bar
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Dialog owner,
    boolean modal) 
    Creates a dialog with an empty title and the specified modality and {@code Dialog} as its owner.

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

    Parameters:
    owner - the owner {@code Dialog} from which the dialog is displayed or {@code null} if this dialog has no owner
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If {@code true}, the modality type property is set to {@code DEFAULT_MODALITY_TYPE}, otherwise the dialog is modeless.
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog.ModalityType#MODELESS
    java.awt.Dialog#DEFAULT_MODALITY_TYPE
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Dialog owner,
    String title) 
    Creates a modeless dialog with the specified title and with the specified owner dialog.

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

    Parameters:
    owner - the owner {@code Dialog} from which the dialog is displayed or {@code null} if this dialog has no owner
    title - the {@code String} to display in the dialog's title bar
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Window owner,
    ModalityType modalityType) 
    Creates a dialog with an empty title and the specified modality and {@code Window} as its owner.

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

    Parameters:
    owner - the {@code Window} from which the dialog is displayed or {@code null} if this dialog has no owner
    modalityType - specifies whether dialog blocks input to other windows when shown. {@code null} value and unsupported modality types are equivalent to {@code MODELESS}
    Throws:
    IllegalArgumentException - if the {@code owner} is not an instance of Dialog or Frame
    IllegalArgumentException - if the {@code owner}'s {@code GraphicsConfiguration} is not from a screen device
    HeadlessException - when {@code GraphicsEnvironment.isHeadless()} returns {@code true}
    SecurityException - if the calling thread does not have permission to create modal dialogs with the given {@code modalityType}
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    since: 1.6 -
 public JDialog(Window owner,
    String title) 
    Creates a modeless dialog with the specified title and owner {@code Window}.

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

    Parameters:
    owner - the {@code Window} from which the dialog is displayed or {@code null} if this dialog has no owner
    title - the {@code String} to display in the dialog's title bar or {@code null} if the dialog has no title
    Throws:
    IllegalArgumentException - if the {@code owner} is not an instance of Dialog or Frame
    IllegalArgumentException - if the {@code owner}'s {@code GraphicsConfiguration} is not from a screen device
    HeadlessException - when {@code GraphicsEnvironment.isHeadless()} returns {@code true}
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    since: 1.6 -
 public JDialog(Frame owner,
    String title,
    boolean modal) 
    Creates a dialog with the specified title, owner {@code Frame} and modality. If {@code owner} is {@code null}, a shared, hidden frame will be set as the owner of this dialog.

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

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

    NOTE: This constructor does not allow you to create an unowned {@code JDialog}. To create an unowned {@code JDialog} you must use either the {@code JDialog(Window)} or {@code JDialog(Dialog)} constructor with an argument of {@code null}.

    Parameters:
    owner - the {@code Frame} from which the dialog is displayed
    title - the {@code String} to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If {@code true}, the modality type property is set to {@code DEFAULT_MODALITY_TYPE} otherwise the dialog is modeless
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog.ModalityType#MODELESS
    java.awt.Dialog#DEFAULT_MODALITY_TYPE
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Dialog owner,
    String title,
    boolean modal) 
    Creates a dialog with the specified title, modality and the specified owner {@code Dialog}.

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

    Parameters:
    owner - the owner {@code Dialog} from which the dialog is displayed or {@code null} if this dialog has no owner
    title - the {@code String} to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If {@code true}, the modality type property is set to {@code DEFAULT_MODALITY_TYPE}, otherwise the dialog is modeless
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog.ModalityType#MODELESS
    java.awt.Dialog#DEFAULT_MODALITY_TYPE
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
 public JDialog(Window owner,
    String title,
    ModalityType modalityType) 
    Creates a dialog with the specified title, owner {@code Window} and modality.

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

    Parameters:
    owner - the {@code Window} from which the dialog is displayed or {@code null} if this dialog has no owner
    title - the {@code String} to display in the dialog's title bar or {@code null} if the dialog has no title
    modalityType - specifies whether dialog blocks input to other windows when shown. {@code null} value and unsupported modality types are equivalent to {@code MODELESS}
    Throws:
    IllegalArgumentException - if the {@code owner} is not an instance of Dialog or Frame
    IllegalArgumentException - if the {@code owner}'s {@code GraphicsConfiguration} is not from a screen device
    HeadlessException - when {@code GraphicsEnvironment.isHeadless()} returns {@code true}
    SecurityException - if the calling thread does not have permission to create modal dialogs with the given {@code modalityType}
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    since: 1.6 -
 public JDialog(Frame owner,
    String title,
    boolean modal,
    GraphicsConfiguration gc) 
    Creates a dialog with the specified title, owner {@code Frame}, modality and {@code GraphicsConfiguration}. If {@code owner} is {@code null}, a shared, hidden frame will be set as the owner of this dialog.

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

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

    NOTE: This constructor does not allow you to create an unowned {@code JDialog}. To create an unowned {@code JDialog} you must use either the {@code JDialog(Window)} or {@code JDialog(Dialog)} constructor with an argument of {@code null}.

    Parameters:
    owner - the {@code Frame} from which the dialog is displayed
    title - the {@code String} to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If {@code true}, the modality type property is set to {@code DEFAULT_MODALITY_TYPE}, otherwise the dialog is modeless.
    gc - the {@code GraphicsConfiguration} of the target screen device; if {@code null}, the default system {@code GraphicsConfiguration} is assumed
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog.ModalityType#MODELESS
    java.awt.Dialog#DEFAULT_MODALITY_TYPE
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    since: 1.4 -
 public JDialog(Dialog owner,
    String title,
    boolean modal,
    GraphicsConfiguration gc) 
    Creates a dialog with the specified title, owner {@code Dialog}, modality and {@code GraphicsConfiguration}.

    NOTE: Any popup components ({@code JComboBox}, {@code JPopupMenu}, {@code 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 {@code JComponent.getDefaultLocale}.

    Parameters:
    owner - the owner {@code Dialog} from which the dialog is displayed or {@code null} if this dialog has no owner
    title - the {@code String} to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If {@code true}, the modality type property is set to {@code DEFAULT_MODALITY_TYPE}, otherwise the dialog is modeless
    gc - the {@code GraphicsConfiguration} of the target screen device; if {@code null}, the default system {@code GraphicsConfiguration} is assumed
    Throws:
    HeadlessException - if {@code GraphicsEnvironment.isHeadless()} returns {@code true}.
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog.ModalityType#MODELESS
    java.awt.Dialog#DEFAULT_MODALITY_TYPE
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    since: 1.4 -
 public JDialog(Window owner,
    String title,
    ModalityType modalityType,
    GraphicsConfiguration gc) 
    Creates a dialog with the specified title, owner {@code Window}, modality and {@code GraphicsConfiguration}.

    NOTE: Any popup components ({@code JComboBox}, {@code JPopupMenu}, {@code 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 {@code JComponent.getDefaultLocale}.

    Parameters:
    owner - the {@code Window} from which the dialog is displayed or {@code null} if this dialog has no owner
    title - the {@code String} to display in the dialog's title bar or {@code null} if the dialog has no title
    modalityType - specifies whether dialog blocks input to other windows when shown. {@code null} value and unsupported modality types are equivalent to {@code MODELESS}
    gc - the {@code GraphicsConfiguration} of the target screen device; if {@code null}, the default system {@code GraphicsConfiguration} is assumed
    Throws:
    IllegalArgumentException - if the {@code owner} is not an instance of Dialog or Frame
    IllegalArgumentException - if the {@code owner}'s {@code GraphicsConfiguration} is not from a screen device
    HeadlessException - when {@code GraphicsEnvironment.isHeadless()} returns {@code true}
    SecurityException - if the calling thread does not have permission to create modal dialogs with the given {@code modalityType}
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    since: 1.6 -
Method from javax.swing.JDialog Summary:
addImpl,   createRootPane,   dialogInit,   getAccessibleContext,   getContentPane,   getDefaultCloseOperation,   getGlassPane,   getGraphics,   getJMenuBar,   getLayeredPane,   getRootPane,   getTransferHandler,   isDefaultLookAndFeelDecorated,   isRootPaneCheckingEnabled,   paramString,   processWindowEvent,   remove,   repaint,   setContentPane,   setDefaultCloseOperation,   setDefaultLookAndFeelDecorated,   setGlassPane,   setJMenuBar,   setLayeredPane,   setLayout,   setRootPane,   setRootPaneCheckingEnabled,   setTransferHandler,   update
Methods from java.awt.Dialog:
addNotify,   blockWindow,   blockWindows,   checkShouldBeBlocked,   constructComponentName,   doDispose,   getAccessibleContext,   getModalityType,   getTitle,   hide,   interruptBlocking,   isModal,   isModal_NoClientCode,   isResizable,   isUndecorated,   modalHide,   modalShow,   modalityPopped,   modalityPushed,   paramString,   setBackground,   setModal,   setModalityType,   setOpacity,   setResizable,   setShape,   setTitle,   setUndecorated,   setVisible,   shouldBlock,   show,   toBack,   unblockWindow
Methods from java.awt.Window:
addNotify,   addOwnedWindow,   addPropertyChangeListener,   addPropertyChangeListener,   addWindowFocusListener,   addWindowListener,   addWindowStateListener,   adjustDecendantsOnParent,   adjustListeningChildrenOnParent,   applyCompoundShape,   applyCurrentShape,   applyResourceBundle,   applyResourceBundle,   canContainFocusOwner,   clearMostRecentFocusOwnerOnHide,   closeSplashScreen,   connectOwnedWindow,   constructComponentName,   createBufferStrategy,   createBufferStrategy,   deliverMouseWheelToAncestor,   dispatchEventImpl,   dispatchMouseWheelToAncestor,   dispose,   disposeImpl,   doDispose,   eventEnabled,   getAccessibleContext,   getAllUnblockedWindows,   getAllWindows,   getBackground,   getBufferStrategy,   getContainer,   getDocumentRoot,   getFocusCycleRootAncestor,   getFocusOwner,   getFocusTraversalKeys,   getFocusableWindowState,   getIconImages,   getInputContext,   getListeners,   getLocale,   getLocationOnWindow,   getModalBlocker,   getModalExclusionType,   getMostRecentFocusOwner,   getOpacity,   getOwnedWindows,   getOwnedWindows_NoClientCode,   getOwner,   getOwner_NoClientCode,   getOwnerlessWindows,   getShape,   getTemporaryLostComponent,   getToolkit,   getType,   getWarningString,   getWindowFocusListeners,   getWindowListeners,   getWindowStateListeners,   getWindows,   hide,   isActive,   isAlwaysOnTop,   isAlwaysOnTopSupported,   isAutoRequestFocus,   isFocusCycleRoot,   isFocusableWindow,   isFocused,   isLocationByPlatform,   isModalBlocked,   isModalExcluded,   isOpaque,   isRecursivelyVisible,   isShowing,   isValidateRoot,   mixOnReshaping,   pack,   paint,   postEvent,   postProcessKeyEvent,   postWindowEvent,   preProcessKeyEvent,   processEvent,   processWindowEvent,   processWindowFocusEvent,   processWindowStateEvent,   removeNotify,   removeOwnedWindow,   removeWindowFocusListener,   removeWindowListener,   removeWindowStateListener,   reshape,   setAlwaysOnTop,   setAutoRequestFocus,   setBackground,   setBounds,   setBounds,   setClientSize,   setCursor,   setFocusCycleRoot,   setFocusableWindowState,   setGraphicsConfiguration,   setIconImage,   setIconImages,   setLocation,   setLocation,   setLocationByPlatform,   setLocationRelativeTo,   setMinimumSize,   setModalBlocked,   setModalExclusionType,   setOpacity,   setShape,   setSize,   setSize,   setTemporaryLostComponent,   setType,   setVisible,   show,   toBack,   toBack_NoClientCode,   toFront,   toFront_NoClientCode,   updateChildFocusableWindowState,   updateChildrenBlocking,   updateZOrder
Methods from java.awt.Container:
add,   add,   add,   add,   add,   addContainerListener,   addImpl,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   adjustDecendantsOnParent,   adjustDescendants,   adjustListeningChildren,   applyComponentOrientation,   areFocusTraversalKeysSet,   canContainFocusOwner,   checkGD,   clearCurrentFocusCycleRootOnHide,   clearMostRecentFocusOwnerOnHide,   containsFocus,   countComponents,   countHierarchyMembers,   createChildHierarchyEvents,   createHierarchyEvents,   decreaseComponentCount,   deliverEvent,   dispatchEventImpl,   dispatchEventToSelf,   doLayout,   eventEnabled,   findComponentAt,   findComponentAt,   findComponentAt,   findComponentAtImpl,   getAccessibleAt,   getAccessibleChild,   getAccessibleChildrenCount,   getAlignmentX,   getAlignmentY,   getComponent,   getComponentAt,   getComponentAt,   getComponentCount,   getComponentZOrder,   getComponents,   getComponentsSync,   getComponents_NoClientCode,   getContainerListeners,   getDropTargetEventTarget,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getHeavyweightContainer,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMouseEventTarget,   getMousePosition,   getOpaqueShape,   getPreferredSize,   getTraversalRoot,   hasHeavyweightDescendants,   hasLightweightDescendants,   increaseComponentCount,   initializeFocusTraversalKeys,   insets,   invalidate,   invalidateParent,   invalidateTree,   isAncestorOf,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   isRecursivelyVisibleUpToHeavyweightContainer,   isSameOrAncestorOf,   isValidateRoot,   layout,   lightweightPaint,   lightweightPrint,   list,   list,   locate,   minimumSize,   mixOnHiding,   mixOnReshaping,   mixOnShowing,   mixOnValidating,   mixOnZOrderChanging,   numListening,   paint,   paintComponents,   paintHeavyweightComponents,   paramString,   postProcessKeyEvent,   postsOldMouseEvents,   preProcessKeyEvent,   preferredSize,   print,   printComponents,   printHeavyweightComponents,   processContainerEvent,   processEvent,   proxyEnableEvents,   recursiveApplyCurrentShape,   recursiveApplyCurrentShape,   recursiveApplyCurrentShape,   recursiveSubtractAndApplyShape,   recursiveSubtractAndApplyShape,   recursiveSubtractAndApplyShape,   remove,   remove,   removeAll,   removeContainerListener,   removeNotify,   setComponentZOrder,   setFocusCycleRoot,   setFocusTraversalKeys,   setFocusTraversalPolicy,   setFocusTraversalPolicyProvider,   setFont,   setLayout,   transferFocusDownCycle,   update,   updateGraphicsData,   validate,   validateTree,   validateUnconditionally
Methods from java.awt.Component:
action,   add,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   adjustListeningChildrenOnParent,   applyComponentOrientation,   applyCompoundShape,   applyCurrentShape,   areBoundsValid,   areFocusTraversalKeysSet,   areInputMethodsEnabled,   autoProcessMouseWheel,   bounds,   canBeFocusOwner,   canBeFocusOwnerRecursively,   checkGD,   checkImage,   checkImage,   checkTreeLock,   checkWindowClosingException,   clearCurrentFocusCycleRootOnHide,   clearMostRecentFocusOwnerOnHide,   coalesceEvents,   constructComponentName,   contains,   contains,   containsFocus,   countHierarchyMembers,   createBufferStrategy,   createBufferStrategy,   createHierarchyEvents,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   disableEvents,   dispatchEvent,   dispatchEventImpl,   dispatchMouseWheelToAncestor,   doLayout,   enable,   enable,   enableEvents,   enableInputMethods,   eventEnabled,   eventTypeEnabled,   findUnderMouseInWindow,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   getAccessControlContext,   getAccessibleContext,   getAccessibleIndexInParent,   getAccessibleStateSet,   getAlignmentX,   getAlignmentY,   getBackBuffer,   getBackground,   getBaseline,   getBaselineResizeBehavior,   getBounds,   getBounds,   getBoundsOp,   getBufferStrategy,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getContainer,   getContainingWindow,   getCursor,   getCursor_NoClientCode,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFocusTraversalKeys_NoIDCheck,   getFont,   getFontMetrics,   getFont_NoClientCode,   getForeground,   getGraphics,   getGraphicsConfiguration,   getGraphicsConfiguration_NoClientCode,   getGraphics_NoClientCode,   getHWPeerAboveMe,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getKeyListeners,   getListeners,   getLocale,   getLocation,   getLocation,   getLocationOnScreen,   getLocationOnScreen_NoTreeLock,   getLocationOnWindow,   getMaximumSize,   getMinimumSize,   getMouseListeners,   getMouseMotionListeners,   getMousePosition,   getMouseWheelListeners,   getName,   getNativeContainer,   getNextFocusCandidate,   getNormalShape,   getObjectLock,   getOpaqueShape,   getParent,   getParent_NoClientCode,   getPeer,   getPreferredSize,   getPropertyChangeListeners,   getPropertyChangeListeners,   getSiblingIndexAbove,   getSiblingIndexBelow,   getSize,   getSize,   getToolkit,   getToolkitImpl,   getTraversalRoot,   getTreeLock,   getWidth,   getX,   getY,   gotFocus,   handleEvent,   hasFocus,   hide,   imageUpdate,   initializeFocusTraversalKeys,   inside,   invalidate,   invalidateIfValid,   invalidateParent,   isAutoFocusTransferOnDisposal,   isBackgroundSet,   isCoalescingEnabled,   isCursorSet,   isDisplayable,   isDoubleBuffered,   isEnabled,   isEnabledImpl,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusTraversableOverridden,   isFocusable,   isFontSet,   isForegroundSet,   isInstanceOf,   isLightweight,   isMaximumSizeSet,   isMinimumSizeSet,   isMixingNeeded,   isNonOpaqueForMixing,   isOpaque,   isPreferredSizeSet,   isRecursivelyVisible,   isSameOrAncestorOf,   isShowing,   isValid,   isVisible,   isVisible_NoClientCode,   keyDown,   keyUp,   layout,   lightweightPaint,   lightweightPrint,   list,   list,   list,   list,   list,   locate,   location,   lostFocus,   minimumSize,   mixOnHiding,   mixOnReshaping,   mixOnShowing,   mixOnValidating,   mixOnZOrderChanging,   mouseDown,   mouseDrag,   mouseEnter,   mouseExit,   mouseMove,   mouseUp,   move,   nextFocus,   numListening,   paint,   paintAll,   paintHeavyweightComponents,   paramString,   pointRelativeToComponent,   postEvent,   postsOldMouseEvents,   preferredSize,   prepareImage,   prepareImage,   print,   printAll,   printHeavyweightComponents,   processComponentEvent,   processEvent,   processFocusEvent,   processHierarchyBoundsEvent,   processHierarchyEvent,   processInputMethodEvent,   processKeyEvent,   processMouseEvent,   processMouseMotionEvent,   processMouseWheelEvent,   relocateComponent,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocus,   requestFocus,   requestFocus,   requestFocusHelper,   requestFocusHelper,   requestFocusInWindow,   requestFocusInWindow,   requestFocusInWindow,   requestFocusInWindow,   reshape,   resize,   resize,   revalidate,   setAutoFocusTransferOnDisposal,   setBackground,   setBounds,   setBounds,   setBoundsOp,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusTraversalKeys_NoIDCheck,   setFocusable,   setFont,   setForeground,   setGraphicsConfiguration,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setMaximumSize,   setMinimumSize,   setName,   setPreferredSize,   setRequestFocusController,   setSize,   setSize,   setVisible,   show,   show,   size,   subtractAndApplyShape,   subtractAndApplyShapeBelowMe,   toString,   transferFocus,   transferFocus,   transferFocusBackward,   transferFocusBackward,   transferFocusUpCycle,   update,   updateCursorImmediately,   updateGraphicsData,   updateZOrder,   validate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.JDialog Detail:
 protected  void addImpl(Component comp,
    Object constraints,
    int index) 
    Adds the specified child {@code Component}. This method is overridden to conditionally forward calls to the {@code contentPane}. By default, children are added to the {@code contentPane} instead of the frame, refer to javax.swing.RootPaneContainer for details.
 protected JRootPane createRootPane() 
    Called by the constructor methods to create the default {@code rootPane}.
 protected  void dialogInit() 
    Called by the constructors to init the {@code JDialog} properly.
 public 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.
 public Container getContentPane() 
    Returns the {@code contentPane} object for this dialog.
 public int getDefaultCloseOperation() 
    Returns the operation which occurs when the user initiates a "close" on this dialog.
 public Component getGlassPane() 
    Returns the {@code glassPane} object for this dialog.
 public Graphics getGraphics() 
    {@inheritDoc}
 public JMenuBar getJMenuBar() 
    Returns the menubar set on this dialog.
 public JLayeredPane getLayeredPane() 
    Returns the {@code layeredPane} object for this dialog.
 public JRootPane getRootPane() 
    Returns the {@code rootPane} object for this dialog.
 public TransferHandler getTransferHandler() 
    Gets the {@code transferHandler} property.
 public static boolean isDefaultLookAndFeelDecorated() 
    Returns true if newly created {@code JDialog}s 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.
 protected boolean isRootPaneCheckingEnabled() 
    Returns whether calls to {@code add} and {@code setLayout} are forwarded to the {@code contentPane}.
 protected String paramString() 
    Returns a string representation of this {@code 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 {@code null}.
 protected  void processWindowEvent(WindowEvent e) 
    Handles window events depending on the state of the {@code defaultCloseOperation} property.
 public  void remove(Component comp) 
    Removes the specified component from the container. If {@code comp} is not the {@code rootPane}, this will forward the call to the {@code contentPane}. This will do nothing if {@code comp} is not a child of the {@code JDialog} or {@code contentPane}.
 public  void repaint(long time,
    int x,
    int y,
    int width,
    int height) 
    Repaints the specified rectangle of this component within {@code time} milliseconds. Refer to {@code RepaintManager} for details on how the repaint is handled.
 public  void setContentPane(Container contentPane) 
    Sets the {@code contentPane} property. This method is called by the constructor.

    Swing's painting architecture requires an opaque {@code 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 {@code JComponent}.

 public  void setDefaultCloseOperation(int operation) 
    Sets the operation that will happen by default when the user initiates a "close" on this dialog. You must specify one of the following choices:

    • {@code DO_NOTHING_ON_CLOSE} (defined in {@code WindowConstants}): Don't do anything; require the program to handle the operation in the {@code windowClosing} method of a registered {@code WindowListener} object.
    • {@code HIDE_ON_CLOSE} (defined in {@code WindowConstants}): Automatically hide the dialog after invoking any registered {@code WindowListener} objects.
    • {@code DISPOSE_ON_CLOSE} (defined in {@code WindowConstants}): Automatically hide and dispose the dialog after invoking any registered {@code WindowListener} objects.

    The value is set to {@code HIDE_ON_CLOSE} by default. Changes to the value of this property cause the firing of a property change event, with property name "defaultCloseOperation".

    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.

 public static  void setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated) 
    Provides a hint as to whether or not newly created {@code JDialog}s should have their Window decorations (such as borders, widgets to close the window, title...) provided by the current look and feel. If {@code defaultLookAndFeelDecorated} is true, the current {@code LookAndFeel} supports providing window decorations, and the current window manager supports undecorated windows, then newly created {@code JDialog}s will have their Window decorations provided by the current {@code LookAndFeel}. Otherwise, newly created {@code JDialog}s 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);
    
 public  void setGlassPane(Component glassPane) 
    Sets the {@code glassPane} property. This method is called by the constructor.
 public  void setJMenuBar(JMenuBar menu) 
    Sets the menubar for this dialog.
 public  void setLayeredPane(JLayeredPane layeredPane) 
    Sets the {@code layeredPane} property. This method is called by the constructor.
 public  void setLayout(LayoutManager manager) 
    Sets the {@code LayoutManager}. Overridden to conditionally forward the call to the {@code contentPane}. Refer to javax.swing.RootPaneContainer for more information.
 protected  void setRootPane(JRootPane root) 
    Sets the {@code rootPane} property. This method is called by the constructor.
 protected  void setRootPaneCheckingEnabled(boolean enabled) 
    Sets whether calls to {@code add} and {@code setLayout} are forwarded to the {@code contentPane}.
 public  void setTransferHandler(TransferHandler newHandler) 
    Sets the {@code transferHandler} property, which is a mechanism to support transfer of data into this component. Use {@code null} if the component does not support data transfer operations.

    If the system property {@code suppressSwingDropSupport} is {@code false} (the default) and the current drop target on this component is either {@code null} or not a user-set drop target, this method will change the drop target as follows: If {@code newHandler} is {@code null} it will clear the drop target. If not {@code null} it will install a new {@code DropTarget}.

    Note: When used with {@code JDialog}, {@code TransferHandler} only provides data import capability, as the data export related methods are currently typed to {@code JComponent}.

    Please see How to Use Drag and Drop and Data Transfer, a section in The Java Tutorial, for more information.

 public  void update(Graphics g) 
    Calls {@code paint(g)}. This method was overridden to prevent an unnecessary call to clear the background.