Save This Page
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

Direct Known Subclasses:
    DialogTimespan, PoolEditorDialog, ColumnChooser, FontDialog, CloseDialog, DialogExportResult, ExceptionDialog, SimilarDialog, ExtractDialog, BorderDialog, DialogRunMetric, OKCancelDialog, SaveSpecialDialog, ClassChooserDialog, ErrorDialog, NeonMonitor, DialogDatabaseAdd, GroupDialog, ChecklistDialog, InfoDialog, SavableTableDialog, BrowserDialog, MusicPathDialog, ContactAddDialog, ConfWizard, DialogImportProject, FontChooser, XDialog, AddDialog, EntryTypeForm, HelpDialog, DialogRunMetric, DialogOpenProject, ChooseListEntryDialog, BeanEditDialog, DialogProperties, SpeciesTableDialog, DialogSqlMetric, DialogAbout, OKDialog, OptionsDialog, SkinChooser, DialogOpenProject, LogDialog, SpoolViewer, PreambleEditor, DeleteDialog, ColorChooserDialog, ImageChooser, SearchPane, MergeDialog, DialogTimespan, DialogAbout, PlaylistSelector, BorderDialog, DialogImportProject, StringDialog, PrefsDialog, JBEditJDialog, EntryTypeDialog, GlyphFactory, DialogSqlMetric, JBlankDialog, ClassRemoveDialog, LicenseDialog, ZipFileOverwriteDialog, DialogDatabaseAdd, MessageBox, DialogExportResult, DialogExtendedMetricParameters, NewDirDialog, DefaultBeanConfigDialog, JTableDialog, AboutBox

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 JDialog component contains a JRootPane as its only child. The contentPane should be the parent of any children of the JDialog. As a convenience 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 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 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 java.beans package. Please see java.beans.XMLEncoder .

Nested Class Summary:
protected class  JDialog.AccessibleJDialog  This class implements accessibility support for the 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 add and setLayout will be forwarded to the contentPane. This is initially false, but is set to true when the 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:
ncomponents,  component,  layoutMgr,  containerListener,  listeningChildren,  listeningBoundsChildren,  descendantsCount,  INCLUDE_SELF,  SEARCH_HEAVYWEIGHTS,  modalComp,  modalAppContext
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  RIGHT_ALIGNMENT,  LEFT_ALIGNMENT,  treeLock,  x,  y,  width,  height,  foreground,  background,  font,  peerFont,  cursor,  locale,  ignoreRepaint,  visible,  enabled,  valid,  dropTarget,  popups,  name,  nameExplicitlySet,  focusable,  isFocusTraversableOverridden,  focusTraversalKeys,  focusTraversalKeysEnabled,  minSize,  prefSize,  newEventsOnly,  eventMask,  changeSupport,  isPacked,  componentSerializedDataVersion,  accessibleContext,  componentListener,  focusListener,  keyListener,  mouseListener,  mouseMotionListener,  mouseWheelListener,  inputMethodListener,  hierarchyListener,  hierarchyBoundsListener,  parent,  peer,  orientation,  graphicsConfig,  bufferStrategy
Constructor:
 public JDialog() 
 public JDialog(Frame owner) 
    Creates a modeless 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.

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

    Parameters:
    owner - the Frame from which the dialog is displayed
    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    exception: HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
 public JDialog(Dialog owner) 
    Creates a modeless 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 owner Dialog from which the dialog is displayed or null if this dialog has no owner
    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    exception: HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
 public JDialog(Window owner) 
    Creates a modeless dialog with the specified owner Window and an empty title.

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

    Parameters:
    owner - the Window from which the dialog is displayed or null if this dialog has no owner
    Throws:
    HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    exception: HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    since: 1.6 -
 public JDialog(Frame owner,
    boolean modal) 
    Creates a dialog with the specified owner Frame, modality and an empty title. 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.

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

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

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

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

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

    Parameters:
    owner - the owner Dialog from which the dialog is displayed or null if this dialog has no owner
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If true, the modality type property is set to DEFAULT_MODALITY_TYPE, otherwise the dialog is modeless.
    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns 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
    exception: HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
 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 JComponent.getDefaultLocale.

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

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

    Parameters:
    owner - the Window from which the dialog is displayed or null if this dialog has no owner
    modalityType - specifies whether dialog blocks input to other windows when shown. null value and unsupported modality types are equivalent to MODELESS
    Throws:
    HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    exception: HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    since: 1.6 -
 public JDialog(Window owner,
    String title) 
    Creates a modeless dialog with the specified title and owner Window.

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

    Parameters:
    owner - the Window from which the dialog is displayed or null if this dialog has no owner
    title - the String to display in the dialog's title bar or null if the dialog has no title
    Throws:
    java.awt.HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    Also see:
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    exception: java.awt.HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    since: 1.6 -
 public JDialog(Frame owner,
    String title,
    boolean modal) 
    Creates a dialog with the specified title, owner Frame and modality. If owner is 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 JComponent.getDefaultLocale.

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

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

    Parameters:
    owner - the Frame from which the dialog is displayed
    title - the String to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If true, the modality type property is set to DEFAULT_MODALITY_TYPE otherwise the dialog is modeless
    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns 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
    exception: HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
 public JDialog(Dialog owner,
    String title,
    boolean modal) 
    Creates a dialog with the specified title, modality and the specified owner Dialog.

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

    Parameters:
    owner - the owner Dialog from which the dialog is displayed or null if this dialog has no owner
    title - the String to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If true, the modality type property is set to DEFAULT_MODALITY_TYPE, otherwise the dialog is modeless
    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns 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
    exception: HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
 public JDialog(Window owner,
    String title,
    Dialog.ModalityType modalityType) 
    Creates a dialog with the specified title, owner Window and modality.

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

    Parameters:
    owner - the Window from which the dialog is displayed or null if this dialog has no owner
    title - the String to display in the dialog's title bar or null if the dialog has no title
    modalityType - specifies whether dialog blocks input to other windows when shown. null value and unsupported modality types are equivalent to MODELESS
    Throws:
    java.awt.HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    exception: java.awt.HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    since: 1.6 -
 public JDialog(Frame owner,
    String title,
    boolean modal,
    GraphicsConfiguration gc) 
    Creates a dialog with the specified title, owner Frame, modality and GraphicsConfiguration. If owner is 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 JComponent.getDefaultLocale.

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

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

    Parameters:
    owner - the Frame from which the dialog is displayed
    title - the String to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If true, the modality type property is set to DEFAULT_MODALITY_TYPE, otherwise the dialog is modeless.
    gc - the GraphicsConfiguration of the target screen device. If gc is null, the same GraphicsConfiguration as the owning Frame is used.
    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns 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
    exception: HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
    since: 1.4 -
 public JDialog(Dialog owner,
    String title,
    boolean modal,
    GraphicsConfiguration gc) 
    Creates a dialog with the specified title, owner Dialog, modality 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 owner Dialog from which the dialog is displayed or null if this dialog has no owner
    title - the String to display in the dialog's title bar
    modal - specifies whether dialog blocks user input to other top-level windows when shown. If true, the modality type property is set to DEFAULT_MODALITY_TYPE, otherwise the dialog is modeless
    gc - the GraphicsConfiguration of the target screen device. If gc is null, the same GraphicsConfiguration as the owning Dialog is used.
    Throws:
    HeadlessException - if GraphicsEnvironment.isHeadless() returns 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
    exception: HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
    since: 1.4 -
 public JDialog(Window owner,
    String title,
    Dialog.ModalityType modalityType,
    GraphicsConfiguration gc) 
    Creates a dialog with the specified title, owner Window, modality 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 Window from which the dialog is displayed or null if this dialog has no owner
    title - the String to display in the dialog's title bar or null if the dialog has no title
    modalityType - specifies whether dialog blocks input to other windows when shown. null value and unsupported modality types are equivalent to MODELESS
    gc - the GraphicsConfiguration of the target screen device; if null, the GraphicsConfiguration from the owning window is used; if owner is also null, the system default GraphicsConfiguration is assumed
    Throws:
    java.awt.HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    Also see:
    java.awt.Dialog.ModalityType
    java.awt.Dialog#setModal
    java.awt.Dialog#setModalityType
    java.awt.GraphicsEnvironment#isHeadless
    JComponent#getDefaultLocale
    exception: java.awt.HeadlessException - when GraphicsEnvironment.isHeadless() returns true
    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,   setModal,   setModalityType,   setResizable,   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,   getBufferStrategy,   getContainer,   getDocumentRoot,   getFocusCycleRootAncestor,   getFocusOwner,   getFocusTraversalKeys,   getFocusableWindowState,   getGraphicsConfiguration,   getIconImages,   getInputContext,   getListeners,   getLocale,   getLocationOnWindow,   getModalBlocker,   getModalExclusionType,   getMostRecentFocusOwner,   getOwnedWindows,   getOwnedWindows_NoClientCode,   getOwner,   getOwner_NoClientCode,   getOwnerlessWindows,   getTemporaryLostComponent,   getToolkit,   getWarningString,   getWindowFocusListeners,   getWindowListeners,   getWindowStateListeners,   getWindows,   hide,   isActive,   isAlwaysOnTop,   isAlwaysOnTopSupported,   isAutoRequestFocus,   isFocusCycleRoot,   isFocusableWindow,   isFocused,   isLocationByPlatform,   isModalBlocked,   isModalExcluded,   isRecursivelyVisible,   isShowing,   mixOnReshaping,   pack,   postEvent,   postProcessKeyEvent,   postWindowEvent,   preProcessKeyEvent,   processEvent,   processWindowEvent,   processWindowFocusEvent,   processWindowStateEvent,   removeNotify,   removeOwnedWindow,   removeWindowFocusListener,   removeWindowListener,   removeWindowStateListener,   resetGC,   reshape,   setAlwaysOnTop,   setAutoRequestFocus,   setBounds,   setBounds,   setClientSize,   setCursor,   setFocusCycleRoot,   setFocusableWindowState,   setIconImage,   setIconImages,   setLocationByPlatform,   setLocationRelativeTo,   setMinimumSize,   setModalBlocked,   setModalExclusionType,   setSize,   setSize,   setTemporaryLostComponent,   setVisible,   show,   toBack,   toBack_NoClientCode,   toFront,   toFront_NoClientCode,   updateChildFocusableWindowState,   updateChildrenBlocking
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,   getComponents_NoClientCode,   getContainerListeners,   getDropTargetEventTarget,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getHeavyweightContainer,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMouseEventTarget,   getMousePosition,   getPreferredSize,   getTraversalRoot,   increaseComponentCount,   initializeFocusTraversalKeys,   insets,   invalidate,   invalidateTree,   isAncestorOf,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   isSameOrAncestorOf,   layout,   lightweightPaint,   lightweightPrint,   list,   list,   locate,   minimumSize,   mixOnHiding,   mixOnReshaping,   mixOnShowing,   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,   validate,   validateTree
Methods from java.awt.Component:
action,   add,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   bounds,   checkImage,   checkImage,   coalesceEvents,   contains,   contains,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   disableEvents,   dispatchEvent,   dispatchEventImpl,   doLayout,   enable,   enable,   enableEvents,   enableInputMethods,   eventTypeEnabled,   findNextFocusComponent,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   generateName,   getAccessibleContext,   getAlignmentX,   getAlignmentY,   getBackground,   getBounds,   getBounds,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getCursor,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFont,   getFontMetrics,   getForeground,   getGraphics,   getGraphicsConfiguration,   getGraphicsConfigurationImpl,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getKeyListeners,   getListeners,   getLocale,   getLocation,   getLocation,   getLocationOnScreen,   getMaximumSize,   getMinimumSize,   getMouseListeners,   getMouseMotionListeners,   getMouseWheelListeners,   getName,   getParent,   getPeer,   getPreferredSize,   getPropertyChangeListeners,   getPropertyChangeListeners,   getSize,   getSize,   getToolkit,   getTreeLock,   getWidth,   getX,   getY,   gotFocus,   handleEvent,   hasFocus,   hide,   imageUpdate,   inside,   invalidate,   isBackgroundSet,   isCursorSet,   isDisplayable,   isDoubleBuffered,   isEnabled,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusable,   isFontSet,   isForegroundSet,   isLightweight,   isOpaque,   isShowing,   isValid,   isVisible,   keyDown,   keyUp,   layout,   list,   list,   list,   list,   list,   locate,   location,   lostFocus,   minimumSize,   mouseDown,   mouseDrag,   mouseEnter,   mouseExit,   mouseMove,   mouseUp,   move,   nextFocus,   paint,   paintAll,   paramString,   postEvent,   preferredSize,   prepareImage,   prepareImage,   print,   printAll,   processComponentEvent,   processEvent,   processFocusEvent,   processHierarchyBoundsEvent,   processHierarchyEvent,   processInputMethodEvent,   processKeyEvent,   processMouseEvent,   processMouseMotionEvent,   processMouseWheelEvent,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocus,   requestFocusInWindow,   requestFocusInWindow,   reshape,   resize,   resize,   setBackground,   setBounds,   setBounds,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setName,   setPeer,   setSize,   setSize,   setVisible,   show,   show,   size,   toString,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   translateEvent,   update,   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 Component. This method is overridden to conditionally forward calls to the contentPane. By default, children are added to the contentPane instead of the frame, refer to javax.swing.RootPaneContainer for details.
 protected JRootPane createRootPane() 
    Called by the constructor methods to create the default rootPane.
 protected  void dialogInit() 
    Called by the constructors to init the 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 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 glassPane object for this dialog.
 public Graphics getGraphics() 
    {@inheritDoc}
 public JMenuBar getJMenuBar() 
    Returns the menubar set on this dialog.
 public JLayeredPane getLayeredPane() 
    Returns the layeredPane object for this dialog.
 public JRootPane getRootPane() 
    Returns the rootPane object for this dialog.
 public TransferHandler getTransferHandler() 
    Gets the transferHandler property.
 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.
 protected boolean isRootPaneCheckingEnabled() 
    Returns whether calls to add and setLayout are forwarded to the contentPane.
 protected 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.
 protected  void processWindowEvent(WindowEvent e) 
    Handles window events depending on the state of the defaultCloseOperation property.
 public  void remove(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.
 public  void repaint(long time,
    int x,
    int y,
    int width,
    int height) 
    Repaints the specified rectangle of this component within time milliseconds. Refer to RepaintManager for details on how the repaint is handled.
 public  void setContentPane(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.

 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:

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

    The value is set to 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 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);
    
 public  void setGlassPane(Component glassPane) 
    Sets the 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 layeredPane property. This method is called by the constructor.
 public  void setLayout(LayoutManager manager) 
    Sets the LayoutManager. Overridden to conditionally forward the call to the contentPane. Refer to javax.swing.RootPaneContainer for more information.
 protected  void setRootPane(JRootPane root) 
    Sets the rootPane property. This method is called by the constructor.
 protected  void setRootPaneCheckingEnabled(boolean enabled) 
    Sets whether calls to add and setLayout are forwarded to the 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 paint(g). This method was overridden to prevent an unnecessary call to clear the background.