java.awt

Class Dialog

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, MenuContainer, java.io.Serializable, javax.accessibility.Accessible
    Direct Known Subclasses:
    FileDialog
    public class Dialog extends Window
    A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user. The size of the dialog includes any area designated for the border. The dimensions of the border area can be obtained using the getInsets method, however, since these dimensions are platform-dependent, a valid insets value cannot be obtained until the dialog is made displayable by either calling pack or show. Since the border area is included in the overall size of the dialog, the border effectively obscures a portion of the dialog, constraining the area available for rendering and/or displaying subcomponents to the rectangle which has an upper-left corner location of (insets.left, insets.top), and has a size of width - (insets.left + insets.right) by height - (insets.top + insets.bottom).

    The default layout for a dialog is BorderLayout.

    A dialog may have its native decorations (i.e. Frame & Titlebar) turned off with setUndecorated. This can only be done while the dialog is not displayable.

    A dialog may have another window as its owner when it's constructed. When the owner window of a visible dialog is minimized, the dialog will automatically be hidden from the user. When the owner window is subsequently restored, the dialog is made visible to the user again.

    In a multi-screen environment, you can create a Dialog on a different screen device than its owner. See Frame for more information.

    A dialog can be either modeless (the default) or modal. A modal dialog is one which blocks input to some other top-level windows in the application, except for any windows created with the dialog as their owner. See AWT Modality specification for details.

    Dialogs are capable of generating the following WindowEvents: WindowOpened, WindowClosing, WindowClosed, WindowActivated, WindowDeactivated, WindowGainedFocus, WindowLostFocus.

    Since:
    JDK1.0
    See Also:
    WindowEvent, Window.addWindowListener(java.awt.event.WindowListener), Serialized Form
    • Nested Classes 
      Modifier and Type Class and Description
      Inherited member indicator BaselineResizeBehavior Reveal DetailHide Detail
      Enumeration of the common ways the baseline of a component can change as the size changes.
      Ordinary member indicator ModalExclusionType Reveal DetailHide Detail
      Any top-level window can be marked not to be blocked by modal dialogs.
      Ordinary member indicator ModalityType Reveal DetailHide Detail
      Modal dialogs block all input to some top-level windows.
      Inherited member indicator Type Reveal DetailHide Detail
      Enumeration of available window types.
    • Fields 
      Modifier and Type Field and Description
      Inherited member indicator ABORT Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that an image which was being tracked asynchronously was aborted before production was complete.
      Inherited member indicator ALLBITS Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that a static image which was previously drawn is now complete and can be drawn again in its final form.
      Inherited member indicator BOTTOM_ALIGNMENT Reveal DetailHide Detail
      Ease-of-use constant for getAlignmentY.
      Inherited member indicator CENTER_ALIGNMENT Reveal DetailHide Detail
      Ease-of-use constant for getAlignmentY and getAlignmentX.
      Ordinary member indicator DEFAULT_MODALITY_TYPE Reveal DetailHide Detail
      Default modality type for modal dialogs.
      Inherited member indicator ERROR Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that an image which was being tracked asynchronously has encountered an error.
      Inherited member indicator FRAMEBITS Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that another complete frame of a multi-frame image which was previously drawn is now available to be drawn again.
      Inherited member indicator HEIGHT Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that the height of the base image is now available and can be taken from the height argument to the imageUpdate callback method.
      Inherited member indicator LEFT_ALIGNMENT Reveal DetailHide Detail
      Ease-of-use constant for getAlignmentX.
      Inherited member indicator PROPERTIES Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that the properties of the image are now available.
      Inherited member indicator RIGHT_ALIGNMENT Reveal DetailHide Detail
      Ease-of-use constant for getAlignmentX.
      Inherited member indicator SOMEBITS Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that more pixels needed for drawing a scaled variation of the image are available.
      Inherited member indicator TOP_ALIGNMENT Reveal DetailHide Detail
      Ease-of-use constant for getAlignmentY().
      Inherited member indicator WIDTH Reveal DetailHide Detail
      This flag in the infoflags argument to imageUpdate indicates that the width of the base image is now available and can be taken from the width argument to the imageUpdate callback method.
    • Static Methods 
      Modifier and Type Static Method and Description
      Inherited member indicator getOwnerlessWindows Reveal DetailHide Detail
      Returns an array of all Windows created by this application that have no owner.
      Inherited member indicator getWindows Reveal DetailHide Detail
      Returns an array of all Windows, both owned and ownerless, created by this application.
    • Constructors 
      Constructor and Description
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible, modeless Dialog with the specified owner Dialog and an empty title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible, modeless Dialog with the specified owner Dialog and title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Dialog, title, and modality.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Dialog, title, modality and GraphicsConfiguration.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible, modeless Dialog with the specified owner Frame and an empty title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Frame and modality and an empty title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible, modeless Dialog with the specified owner Frame and title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Frame, title and modality.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Frame, title, modality, and GraphicsConfiguration.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible, modeless Dialog with the specified owner Window and an empty title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Window and modality and an empty title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible, modeless Dialog with the specified owner Window and title.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Window, title and modality.
      Ordinary member indicator Dialog Reveal DetailHide Detail
      Constructs an initially invisible Dialog with the specified owner Window, title, modality and GraphicsConfiguration.
      • Basic Attribute Methods 
        Modifier and Type Method and Description
        Inherited member indicator applyComponentOrientation Reveal DetailHide Detail
        Sets the ComponentOrientation property of this container and all components contained within it.
        Inherited member indicator disable Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean).
        Inherited member indicator enable Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean).
        Inherited member indicator enable Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setEnabled(boolean).
        Inherited member indicator enableInputMethods Reveal DetailHide Detail
        Enables or disables input method support for this component.
        Overridden member indicator getAccessibleContext Reveal DetailHide Detail
        Gets the AccessibleContext associated with this Dialog.
        Inherited member indicator getBackground Reveal DetailHide Detail
        Gets the background color of this window.
        Inherited member indicator getColorModel Reveal DetailHide Detail
        Gets the instance of ColorModel used to display the component on the output device.
        Inherited member indicator getComponentOrientation Reveal DetailHide Detail
        Retrieves the language-sensitive orientation that is to be used to order the elements or text within this component.
        Inherited member indicator getCursor Reveal DetailHide Detail
        Gets the cursor set in the component.
        Inherited member indicator getFont Reveal DetailHide Detail
        Gets the font of this component.
        Inherited member indicator getForeground Reveal DetailHide Detail
        Gets the foreground color of this component.
        Inherited member indicator getLocale Reveal DetailHide Detail
        Gets the Locale object that is associated with this window, if the locale has been set.
        Inherited member indicator getName Reveal DetailHide Detail
        Gets the name of the component.
        Inherited member indicator getParent Reveal DetailHide Detail
        Gets the parent of this component.
        Overridden member indicator hide Reveal DetailHide Detail
        Deprecated. As of JDK version 1.5, replaced by setVisible(boolean).
        Inherited member indicator isBackgroundSet Reveal DetailHide Detail
        Returns whether the background color has been explicitly set for this Component.
        Inherited member indicator isCursorSet Reveal DetailHide Detail
        Returns whether the cursor has been explicitly set for this Component.
        Inherited member indicator isDisplayable Reveal DetailHide Detail
        Determines whether this component is displayable.
        Inherited member indicator isDoubleBuffered Reveal DetailHide Detail
        Returns true if this component is painted to an offscreen image ("buffer") that's copied to the screen later.
        Inherited member indicator isEnabled Reveal DetailHide Detail
        Determines whether this component is enabled.
        Inherited member indicator isFontSet Reveal DetailHide Detail
        Returns whether the font has been explicitly set for this Component.
        Inherited member indicator isForegroundSet Reveal DetailHide Detail
        Returns whether the foreground color has been explicitly set for this Component.
        Inherited member indicator isLightweight Reveal DetailHide Detail
        A lightweight component doesn't have a native toolkit peer.
        Inherited member indicator isOpaque Reveal DetailHide Detail
        Indicates if the window is currently opaque.
        Inherited member indicator isShowing Reveal DetailHide Detail
        Checks if this Window is showing on screen.
        Inherited member indicator isVisible Reveal DetailHide Detail
        Determines whether this component should be visible when its parent is visible.
        Overridden member indicator setBackground Reveal DetailHide Detail
        Sets the background color of this window.
        Inherited member indicator setComponentOrientation Reveal DetailHide Detail
        Sets the language-sensitive orientation that is to be used to order the elements or text within this component.
        Inherited member indicator setCursor Reveal DetailHide Detail
        Set the cursor image to a specified cursor.
        Inherited member indicator setEnabled Reveal DetailHide Detail
        Enables or disables this component, depending on the value of the parameter b.
        Inherited member indicator setFont Reveal DetailHide Detail
        Sets the font of this container.
        Inherited member indicator setForeground Reveal DetailHide Detail
        Sets the foreground color of this component.
        Inherited member indicator setLocale Reveal DetailHide Detail
        Sets the locale of this component.
        Inherited member indicator setName Reveal DetailHide Detail
        Sets the name of the component to the specified string.
        Overridden member indicator setVisible Reveal DetailHide Detail
        Shows or hides this Dialog depending on the value of parameter b.
        Overridden member indicator show Reveal DetailHide Detail
        Deprecated. As of JDK version 1.5, replaced by setVisible(boolean).
        Inherited member indicator show Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setVisible(boolean).
      • Event Support Methods 
        Modifier and Type Method and Description
        Inherited member indicator action Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, should register this component as ActionListener on component which fires action events.
        Inherited member indicator deliverEvent Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by dispatchEvent(AWTEvent e)
        Inherited member indicator dispatchEvent Reveal DetailHide Detail
        Dispatches an event to this component or one of its sub components.
        Inherited member indicator firePropertyChange Reveal DetailHide Detail
        Reports a bound property change.
        Inherited member indicator firePropertyChange Reveal DetailHide Detail
        Reports a bound property change.
        Inherited member indicator firePropertyChange Reveal DetailHide Detail
        Reports a bound property change.
        Inherited member indicator firePropertyChange Reveal DetailHide Detail
        Reports a bound property change.
        Inherited member indicator firePropertyChange Reveal DetailHide Detail
        Reports a bound property change.
        Inherited member indicator firePropertyChange Reveal DetailHide Detail
        Reports a bound property change.
        Inherited member indicator getListeners Reveal DetailHide Detail
        Returns an array of all the objects currently registered as FooListeners upon this Window.
        Inherited member indicator handleEvent Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1 replaced by processEvent(AWTEvent).
        Inherited member indicator keyDown Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).
        Inherited member indicator keyUp Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processKeyEvent(KeyEvent).
        Inherited member indicator mouseDown Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
        Inherited member indicator mouseDrag Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).
        Inherited member indicator mouseEnter Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
        Inherited member indicator mouseExit Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
        Inherited member indicator mouseMove Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processMouseMotionEvent(MouseEvent).
        Inherited member indicator mouseUp Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processMouseEvent(MouseEvent).
        Inherited member indicator postEvent Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1 replaced by dispatchEvent(AWTEvent).
      • Event Registration Methods 
        Modifier and Type Method and Description
        Inherited member indicator addComponentListener Reveal DetailHide Detail
        Adds the specified component listener to receive component events from this component.
        Inherited member indicator addContainerListener Reveal DetailHide Detail
        Adds the specified container listener to receive container events from this container.
        Inherited member indicator addFocusListener Reveal DetailHide Detail
        Adds the specified focus listener to receive focus events from this component when this component gains input focus.
        Inherited member indicator addHierarchyBoundsListener Reveal DetailHide Detail
        Adds the specified hierarchy bounds listener to receive hierarchy bounds events from this component when the hierarchy to which this container belongs changes.
        Inherited member indicator addHierarchyListener Reveal DetailHide Detail
        Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes.
        Inherited member indicator addInputMethodListener Reveal DetailHide Detail
        Adds the specified input method listener to receive input method events from this component.
        Inherited member indicator addKeyListener Reveal DetailHide Detail
        Adds the specified key listener to receive key events from this component.
        Inherited member indicator addMouseListener Reveal DetailHide Detail
        Adds the specified mouse listener to receive mouse events from this component.
        Inherited member indicator addMouseMotionListener Reveal DetailHide Detail
        Adds the specified mouse motion listener to receive mouse motion events from this component.
        Inherited member indicator addMouseWheelListener Reveal DetailHide Detail
        Adds the specified mouse wheel listener to receive mouse wheel events from this component.
        Inherited member indicator addPropertyChangeListener Reveal DetailHide Detail
        Adds a PropertyChangeListener to the listener list.
        Inherited member indicator addPropertyChangeListener Reveal DetailHide Detail
        Adds a PropertyChangeListener to the listener list for a specific property.
        Inherited member indicator getComponentListeners Reveal DetailHide Detail
        Returns an array of all the component listeners registered on this component.
        Inherited member indicator getContainerListeners Reveal DetailHide Detail
        Returns an array of all the container listeners registered on this container.
        Inherited member indicator getFocusListeners Reveal DetailHide Detail
        Returns an array of all the focus listeners registered on this component.
        Inherited member indicator getHierarchyBoundsListeners Reveal DetailHide Detail
        Returns an array of all the hierarchy bounds listeners registered on this component.
        Inherited member indicator getHierarchyListeners Reveal DetailHide Detail
        Returns an array of all the hierarchy listeners registered on this component.
        Inherited member indicator getInputMethodListeners Reveal DetailHide Detail
        Returns an array of all the input method listeners registered on this component.
        Inherited member indicator getKeyListeners Reveal DetailHide Detail
        Returns an array of all the key listeners registered on this component.
        Inherited member indicator getMouseListeners Reveal DetailHide Detail
        Returns an array of all the mouse listeners registered on this component.
        Inherited member indicator getMouseMotionListeners Reveal DetailHide Detail
        Returns an array of all the mouse motion listeners registered on this component.
        Inherited member indicator getMouseWheelListeners Reveal DetailHide Detail
        Returns an array of all the mouse wheel listeners registered on this component.
        Inherited member indicator getPropertyChangeListeners Reveal DetailHide Detail
        Returns an array of all the property change listeners registered on this component.
        Inherited member indicator getPropertyChangeListeners Reveal DetailHide Detail
        Returns an array of all the listeners which have been associated with the named property.
        Inherited member indicator removeComponentListener Reveal DetailHide Detail
        Removes the specified component listener so that it no longer receives component events from this component.
        Inherited member indicator removeContainerListener Reveal DetailHide Detail
        Removes the specified container listener so it no longer receives container events from this container.
        Inherited member indicator removeFocusListener Reveal DetailHide Detail
        Removes the specified focus listener so that it no longer receives focus events from this component.
        Inherited member indicator removeHierarchyBoundsListener Reveal DetailHide Detail
        Removes the specified hierarchy bounds listener so that it no longer receives hierarchy bounds events from this component.
        Inherited member indicator removeHierarchyListener Reveal DetailHide Detail
        Removes the specified hierarchy listener so that it no longer receives hierarchy changed events from this component.
        Inherited member indicator removeInputMethodListener Reveal DetailHide Detail
        Removes the specified input method listener so that it no longer receives input method events from this component.
        Inherited member indicator removeKeyListener Reveal DetailHide Detail
        Removes the specified key listener so that it no longer receives key events from this component.
        Inherited member indicator removeMouseListener Reveal DetailHide Detail
        Removes the specified mouse listener so that it no longer receives mouse events from this component.
        Inherited member indicator removeMouseMotionListener Reveal DetailHide Detail
        Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.
        Inherited member indicator removeMouseWheelListener Reveal DetailHide Detail
        Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component.
        Inherited member indicator removePropertyChangeListener Reveal DetailHide Detail
        Removes a PropertyChangeListener from the listener list.
        Inherited member indicator removePropertyChangeListener Reveal DetailHide Detail
        Removes a PropertyChangeListener from the listener list for a specific property.
      • Keyboard Focus Methods 
        Modifier and Type Method and Description
        Inherited member indicator areFocusTraversalKeysSet Reveal DetailHide Detail
        Returns whether the Set of focus traversal keys for the given focus traversal operation has been explicitly defined for this Container.
        Inherited member indicator getFocusCycleRootAncestor Reveal DetailHide Detail
        Always returns null because Windows have no ancestors; they represent the top of the Component hierarchy.
        Inherited member indicator getFocusTraversalKeys Reveal DetailHide Detail
        Gets a focus traversal key for this Window.
        Inherited member indicator getFocusTraversalKeysEnabled Reveal DetailHide Detail
        Returns whether focus traversal keys are enabled for this Component.
        Inherited member indicator getFocusTraversalPolicy Reveal DetailHide Detail
        Returns the focus traversal policy that will manage keyboard traversal of this Container's children, or null if this Container is not a focus cycle root.
        Inherited member indicator gotFocus Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).
        Inherited member indicator hasFocus Reveal DetailHide Detail
        Returns true if this Component is the focus owner.
        Inherited member indicator isFocusable Reveal DetailHide Detail
        Returns whether this Component can be focused.
        Inherited member indicator isFocusCycleRoot Reveal DetailHide Detail
        Always returns true because all Windows must be roots of a focus traversal cycle.
        Inherited member indicator isFocusCycleRoot Reveal DetailHide Detail
        Returns whether the specified Container is the focus cycle root of this Container's focus traversal cycle.
        Inherited member indicator isFocusOwner Reveal DetailHide Detail
        Returns true if this Component is the focus owner.
        Inherited member indicator isFocusTraversable Reveal DetailHide Detail
        Deprecated. As of 1.4, replaced by isFocusable().
        Inherited member indicator isFocusTraversalPolicyProvider Reveal DetailHide Detail
        Returns whether this container provides focus traversal policy.
        Inherited member indicator isFocusTraversalPolicySet Reveal DetailHide Detail
        Returns whether the focus traversal policy has been explicitly set for this Container.
        Inherited member indicator lostFocus Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by processFocusEvent(FocusEvent).
        Inherited member indicator nextFocus Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by transferFocus().
        Inherited member indicator requestFocus Reveal DetailHide Detail
        Requests that this Component get the input focus, and that this Component's top-level ancestor become the focused Window.
        Inherited member indicator requestFocusInWindow Reveal DetailHide Detail
        Requests that this Component get the input focus, if this Component's top-level ancestor is already the focused Window.
        Inherited member indicator setFocusable Reveal DetailHide Detail
        Sets the focusable state of this Component to the specified value.
        Inherited member indicator setFocusCycleRoot Reveal DetailHide Detail
        Does nothing because Windows must always be roots of a focus traversal cycle.
        Inherited member indicator setFocusTraversalKeys Reveal DetailHide Detail
        Sets the focus traversal keys for a given traversal operation for this Container.
        Inherited member indicator setFocusTraversalKeysEnabled Reveal DetailHide Detail
        Sets whether focus traversal keys are enabled for this Component.
        Inherited member indicator setFocusTraversalPolicy Reveal DetailHide Detail
        Sets the focus traversal policy that will manage keyboard traversal of this Container's children, if this Container is a focus cycle root.
        Inherited member indicator setFocusTraversalPolicyProvider Reveal DetailHide Detail
        Sets whether this container will be used to provide focus traversal policy.
        Inherited member indicator transferFocus Reveal DetailHide Detail
        Transfers the focus to the next component, as though this Component were the focus owner.
        Inherited member indicator transferFocusBackward Reveal DetailHide Detail
        Transfers the focus to the previous component, as though this Component were the focus owner.
        Inherited member indicator transferFocusDownCycle Reveal DetailHide Detail
        Transfers the focus down one focus traversal cycle.
        Inherited member indicator transferFocusUpCycle Reveal DetailHide Detail
        Transfers the focus up one focus traversal cycle.
      • Graphics Methods 
        Modifier and Type Method and Description
        Inherited member indicator getFontMetrics Reveal DetailHide Detail
        Gets the font metrics for the specified font.
        Inherited member indicator getGraphics Reveal DetailHide Detail
        Creates a graphics context for this component.
        Inherited member indicator getGraphicsConfiguration Reveal DetailHide Detail
        Gets the GraphicsConfiguration associated with this Component.
        Inherited member indicator getLocationOnScreen Reveal DetailHide Detail
        Gets the location of this component in the form of a point specifying the component's top-left corner in the screen's coordinate space.
        Inherited member indicator getMousePosition Reveal DetailHide Detail
        Returns the position of the mouse pointer in this Component's coordinate space if the Component is directly under the mouse pointer, otherwise returns null.
        Inherited member indicator getToolkit Reveal DetailHide Detail
        Returns the toolkit of this frame.
      • Hierarchy Methods 
        Modifier and Type Method and Description
        Inherited member indicator add Reveal DetailHide Detail
        Appends the specified component to the end of this container.
        Inherited member indicator add Reveal DetailHide Detail
        Adds the specified component to this container at the given position.
        Inherited member indicator add Reveal DetailHide Detail
        Adds the specified component to the end of this container.
        Inherited member indicator add Reveal DetailHide Detail
        Adds the specified component to this container with the specified constraints at the specified index.
        Inherited member indicator add Reveal DetailHide Detail
        Adds the specified component to this container.
        Inherited member indicator countComponents Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getComponentCount().
        Inherited member indicator getComponent Reveal DetailHide Detail
        Gets the nth component in this container.
        Inherited member indicator getComponentCount Reveal DetailHide Detail
        Gets the number of components in this panel.
        Inherited member indicator getComponents Reveal DetailHide Detail
        Gets all the components in this container.
        Inherited member indicator getComponentZOrder Reveal DetailHide Detail
        Returns the z-order index of the component inside the container.
        Inherited member indicator isAncestorOf Reveal DetailHide Detail
        Checks if the component is contained in the component hierarchy of this container.
        Inherited member indicator remove Reveal DetailHide Detail
        Removes the specified component from this container.
        Inherited member indicator remove Reveal DetailHide Detail
        Removes the component, specified by index, from this container.
        Inherited member indicator removeAll Reveal DetailHide Detail
        Removes all the components from this container.
        Inherited member indicator setComponentZOrder Reveal DetailHide Detail
        Moves the specified component to the specified z-order index in the container.
      • Image Methods 
        Modifier and Type Method and Description
        Inherited member indicator checkImage Reveal DetailHide Detail
        Returns the status of the construction of a screen representation of the specified image.
        Inherited member indicator checkImage Reveal DetailHide Detail
        Returns the status of the construction of a screen representation of the specified image.
        Inherited member indicator createImage Reveal DetailHide Detail
        Creates an image from the specified image producer.
        Inherited member indicator createImage Reveal DetailHide Detail
        Creates an off-screen drawable image to be used for double buffering.
        Inherited member indicator createVolatileImage Reveal DetailHide Detail
        Creates a volatile off-screen drawable image to be used for double buffering.
        Inherited member indicator createVolatileImage Reveal DetailHide Detail
        Creates a volatile off-screen drawable image, with the given capabilities.
        Inherited member indicator imageUpdate Reveal DetailHide Detail
        Repaints the component when the image has changed.
        Inherited member indicator prepareImage Reveal DetailHide Detail
        Prepares an image for rendering on this component.
        Inherited member indicator prepareImage Reveal DetailHide Detail
        Prepares an image for rendering on this component at the specified width and height.
      • Layout Methods 
        Modifier and Type Method and Description
        Inherited member indicator bounds Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getBounds().
        Inherited member indicator contains Reveal DetailHide Detail
        Checks whether this component "contains" the specified point, where x and y are defined to be relative to the coordinate system of this component.
        Inherited member indicator contains Reveal DetailHide Detail
        Checks whether this component "contains" the specified point, where the point's x and y coordinates are defined to be relative to the coordinate system of this component.
        Inherited member indicator doLayout Reveal DetailHide Detail
        Causes this container to lay out its components.
        Inherited member indicator findComponentAt Reveal DetailHide Detail
        Locates the visible child component that contains the specified position.
        Inherited member indicator findComponentAt Reveal DetailHide Detail
        Locates the visible child component that contains the specified point.
        Inherited member indicator getAlignmentX Reveal DetailHide Detail
        Returns the alignment along the x axis.
        Inherited member indicator getAlignmentY Reveal DetailHide Detail
        Returns the alignment along the y axis.
        Inherited member indicator getBaseline Reveal DetailHide Detail
        Returns the baseline.
        Inherited member indicator getBaselineResizeBehavior Reveal DetailHide Detail
        Returns an enum indicating how the baseline of the component changes as the size changes.
        Inherited member indicator getBounds Reveal DetailHide Detail
        Gets the bounds of this component in the form of a Rectangle object.
        Inherited member indicator getBounds Reveal DetailHide Detail
        Stores the bounds of this component into "return value" rv and return rv.
        Inherited member indicator getComponentAt Reveal DetailHide Detail
        Locates the component that contains the x,y position.
        Inherited member indicator getComponentAt Reveal DetailHide Detail
        Gets the component that contains the specified point.
        Inherited member indicator getHeight Reveal DetailHide Detail
        Returns the current height of this component.
        Inherited member indicator getInsets Reveal DetailHide Detail
        Determines the insets of this container, which indicate the size of the container's border.
        Inherited member indicator getLayout Reveal DetailHide Detail
        Gets the layout manager for this container.
        Inherited member indicator getLocation Reveal DetailHide Detail
        Gets the location of this component in the form of a point specifying the component's top-left corner.
        Inherited member indicator getLocation Reveal DetailHide Detail
        Stores the x,y origin of this component into "return value" rv and return rv.
        Inherited member indicator getMaximumSize Reveal DetailHide Detail
        Returns the maximum size of this container.
        Inherited member indicator getMinimumSize Reveal DetailHide Detail
        Returns the minimum size of this container.
        Inherited member indicator getMousePosition Reveal DetailHide Detail
        Returns the position of the mouse pointer in this Container's coordinate space if the Container is under the mouse pointer, otherwise returns null.
        Inherited member indicator getPreferredSize Reveal DetailHide Detail
        Returns the preferred size of this container.
        Inherited member indicator getSize Reveal DetailHide Detail
        Returns the size of this component in the form of a Dimension object.
        Inherited member indicator getSize Reveal DetailHide Detail
        Stores the width/height of this component into "return value" rv and return rv.
        Inherited member indicator getWidth Reveal DetailHide Detail
        Returns the current width of this component.
        Inherited member indicator getX Reveal DetailHide Detail
        Returns the current x coordinate of the components origin.
        Inherited member indicator getY Reveal DetailHide Detail
        Returns the current y coordinate of the components origin.
        Inherited member indicator insets Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getInsets().
        Inherited member indicator inside Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by contains(int, int).
        Inherited member indicator invalidate Reveal DetailHide Detail
        Invalidates the container.
        Inherited member indicator isMaximumSizeSet Reveal DetailHide Detail
        Returns true if the maximum size has been set to a non-null value otherwise returns false.
        Inherited member indicator isMinimumSizeSet Reveal DetailHide Detail
        Returns whether or not setMinimumSize has been invoked with a non-null value.
        Inherited member indicator isPreferredSizeSet Reveal DetailHide Detail
        Returns true if the preferred size has been set to a non-null value otherwise returns false.
        Inherited member indicator isValid Reveal DetailHide Detail
        Determines whether this component is valid.
        Inherited member indicator isValidateRoot Reveal DetailHide Detail
        Indicates if this container is a validate root.
        Inherited member indicator layout Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by doLayout().
        Inherited member indicator locate Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getComponentAt(int, int).
        Inherited member indicator location Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getLocation().
        Inherited member indicator minimumSize Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getMinimumSize().
        Inherited member indicator move Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setLocation(int, int).
        Inherited member indicator preferredSize Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getPreferredSize().
        Inherited member indicator reshape Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setBounds(int, int, int, int).
        Inherited member indicator resize Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setSize(Dimension).
        Inherited member indicator resize Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by setSize(int, int).
        Inherited member indicator revalidate Reveal DetailHide Detail
        Revalidates the component hierarchy up to the nearest validate root.
        Inherited member indicator setBounds Reveal DetailHide Detail
        Moves and resizes this component.
        Inherited member indicator setBounds Reveal DetailHide Detail
        Moves and resizes this component to conform to the new bounding rectangle r.
        Inherited member indicator setLayout Reveal DetailHide Detail
        Sets the layout manager for this container.
        Inherited member indicator setLocation Reveal DetailHide Detail
        Moves this component to a new location.
        Inherited member indicator setLocation Reveal DetailHide Detail
        Moves this component to a new location.
        Inherited member indicator setMaximumSize Reveal DetailHide Detail
        Sets the maximum size of this component to a constant value.
        Inherited member indicator setMinimumSize Reveal DetailHide Detail
        Sets the minimum size of this window to a constant value.
        Inherited member indicator setPreferredSize Reveal DetailHide Detail
        Sets the preferred size of this component to a constant value.
        Inherited member indicator setSize Reveal DetailHide Detail
        Resizes this component so that it has width d.width and height d.height.
        Inherited member indicator setSize Reveal DetailHide Detail
        Resizes this component so that it has width width and height height.
        Inherited member indicator size Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, replaced by getSize().
        Inherited member indicator validate Reveal DetailHide Detail
        Validates this container and all of its subcomponents.
      • Painting Methods 
        Modifier and Type Method and Description
        Inherited member indicator getIgnoreRepaint Reveal DetailHide Detail
         
        Inherited member indicator paint Reveal DetailHide Detail
        Paints the container.
        Inherited member indicator paintAll Reveal DetailHide Detail
        Paints this component and all of its subcomponents.
        Inherited member indicator paintComponents Reveal DetailHide Detail
        Paints each of the components in this container.
        Inherited member indicator repaint Reveal DetailHide Detail
        Repaints this component.
        Inherited member indicator repaint Reveal DetailHide Detail
        Repaints the specified rectangle of this component.
        Inherited member indicator repaint Reveal DetailHide Detail
        Repaints the component.
        Inherited member indicator repaint Reveal DetailHide Detail
        Repaints the specified rectangle of this component within tm milliseconds.
        Inherited member indicator setIgnoreRepaint Reveal DetailHide Detail
        Sets whether or not paint messages received from the operating system should be ignored.
        Inherited member indicator update Reveal DetailHide Detail
        Updates the container.
      • Printing Methods 
        Modifier and Type Method and Description
        Inherited member indicator list Reveal DetailHide Detail
        Prints a listing of this component to the standard system output stream System.out.
        Inherited member indicator list Reveal DetailHide Detail
        Prints a listing of this component to the specified output stream.
        Inherited member indicator list Reveal DetailHide Detail
        Prints a listing of this container to the specified output stream.
        Inherited member indicator list Reveal DetailHide Detail
        Prints a listing to the specified print writer.
        Inherited member indicator list Reveal DetailHide Detail
        Prints out a list, starting at the specified indentation, to the specified print writer.
        Inherited member indicator print Reveal DetailHide Detail
        Prints the container.
        Inherited member indicator printAll Reveal DetailHide Detail
        Prints this component and all of its subcomponents.
        Inherited member indicator printComponents Reveal DetailHide Detail
        Prints each of the components in this container.
      • Other Methods 
        Modifier and Type Method and Description
        Inherited member indicator add Reveal DetailHide Detail
        Adds the specified popup menu to the component.
        Overridden member indicator addNotify Reveal DetailHide Detail
        Makes this Dialog displayable by connecting it to a native screen resource.
        Inherited member indicator addWindowFocusListener Reveal DetailHide Detail
        Adds the specified window focus listener to receive window events from this window.
        Inherited member indicator addWindowListener Reveal DetailHide Detail
        Adds the specified window listener to receive window events from this window.
        Inherited member indicator addWindowStateListener Reveal DetailHide Detail
        Adds the specified window state listener to receive window events from this window.
        Inherited member indicator applyResourceBundle Reveal DetailHide Detail
        Deprecated. As of J2SE 1.4, replaced by Component.applyComponentOrientation.
        Inherited member indicator applyResourceBundle Reveal DetailHide Detail
        Deprecated. As of J2SE 1.4, replaced by Component.applyComponentOrientation.
        Inherited member indicator createBufferStrategy Reveal DetailHide Detail
        Creates a new strategy for multi-buffering on this component.
        Inherited member indicator createBufferStrategy Reveal DetailHide Detail
        Creates a new strategy for multi-buffering on this component with the required buffer capabilities.
        Inherited member indicator dispose Reveal DetailHide Detail
        Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children.
        Inherited member indicator getBufferStrategy Reveal DetailHide Detail
        Returns the BufferStrategy used by this component.
        Inherited member indicator getDropTarget Reveal DetailHide Detail
        Gets the DropTarget associated with this Component.
        Inherited member indicator getFocusableWindowState Reveal DetailHide Detail
        Returns whether this Window can become the focused Window if it meets the other requirements outlined in isFocusableWindow.
        Inherited member indicator getFocusOwner Reveal DetailHide Detail
        Returns the child Component of this Window that has focus if this Window is focused; returns null otherwise.
        Inherited member indicator getIconImages Reveal DetailHide Detail
        Returns the sequence of images to be displayed as the icon for this window.
        Inherited member indicator getInputContext Reveal DetailHide Detail
        Gets the input context for this window.
        Inherited member indicator getInputMethodRequests Reveal DetailHide Detail
        Gets the input method request handler which supports requests from input methods for this component.
        Inherited member indicator getModalExclusionType Reveal DetailHide Detail
        Returns the modal exclusion type of this window.
        Ordinary member indicator getModalityType Reveal DetailHide Detail
        Returns the modality type of this dialog.
        Inherited member indicator getMostRecentFocusOwner Reveal DetailHide Detail
        Returns the child Component of this Window that will receive the focus when this Window is focused.
        Inherited member indicator getOpacity Reveal DetailHide Detail
        Returns the opacity of the window.
        Inherited member indicator getOwnedWindows Reveal DetailHide Detail
        Return an array containing all the windows this window currently owns.
        Inherited member indicator getOwner Reveal DetailHide Detail
        Returns the owner of this window.
        Inherited member indicator getPeer Reveal DetailHide Detail
        Deprecated. As of JDK version 1.1, programs should not directly manipulate peers; replaced by boolean isDisplayable().
        Inherited member indicator getShape Reveal DetailHide Detail
        Returns the shape of the window.
        Ordinary member indicator getTitle Reveal DetailHide Detail
        Gets the title of the dialog.
        Inherited member indicator getTreeLock Reveal DetailHide Detail
        Gets this component's locking object (the object that owns the thread synchronization monitor) for AWT component-tree and layout operations.
        Inherited member indicator getType Reveal DetailHide Detail
        Returns the type of the window.
        Inherited member indicator getWarningString Reveal DetailHide Detail
        Gets the warning string that is displayed with this window.
        Inherited member indicator getWindowFocusListeners Reveal DetailHide Detail
        Returns an array of all the window focus listeners registered on this window.
        Inherited member indicator getWindowListeners Reveal DetailHide Detail
        Returns an array of all the window listeners registered on this window.
        Inherited member indicator getWindowStateListeners Reveal DetailHide Detail
        Returns an array of all the window state listeners registered on this window.
        Inherited member indicator isActive Reveal DetailHide Detail
        Returns whether this Window is active.
        Inherited member indicator isAlwaysOnTop Reveal DetailHide Detail
        Returns whether this window is an always-on-top window.
        Inherited member indicator isAlwaysOnTopSupported Reveal DetailHide Detail
        Returns whether the always-on-top mode is supported for this window.
        Inherited member indicator isAutoRequestFocus Reveal DetailHide Detail
        Returns whether this window should receive focus on subsequently being shown (with a call to setVisible(true)), or being moved to the front (with a call to Window.toFront()).
        Inherited member indicator isFocusableWindow Reveal DetailHide Detail
        Returns whether this Window can become the focused Window, that is, whether this Window or any of its subcomponents can become the focus owner.
        Inherited member indicator isFocused Reveal DetailHide Detail
        Returns whether this Window is focused.
        Inherited member indicator isLocationByPlatform Reveal DetailHide Detail
        Returns true if this Window will appear at the default location for the native windowing system the next time this Window is made visible.
        Ordinary member indicator isModal Reveal DetailHide Detail
        Indicates whether the dialog is modal.
        Ordinary member indicator isResizable Reveal DetailHide Detail
        Indicates whether this dialog is resizable by the user.
        Ordinary member indicator isUndecorated Reveal DetailHide Detail
        Indicates whether this dialog is undecorated.
        Inherited member indicator pack Reveal DetailHide Detail
        Causes this Window to be sized to fit the preferred size and layouts of its subcomponents.
        Inherited member indicator remove Reveal DetailHide Detail
        Removes the specified popup menu from the component.
        Inherited member indicator removeNotify Reveal DetailHide Detail
        Makes this Container undisplayable by removing its connection to its native screen resource.
        Inherited member indicator removeWindowFocusListener Reveal DetailHide Detail
        Removes the specified window focus listener so that it no longer receives window events from this window.
        Inherited member indicator removeWindowListener Reveal DetailHide Detail
        Removes the specified window listener so that it no longer receives window events from this window.
        Inherited member indicator removeWindowStateListener Reveal DetailHide Detail
        Removes the specified window state listener so that it no longer receives window events from this window.
        Inherited member indicator setAlwaysOnTop Reveal DetailHide Detail
        Sets whether this window should always be above other windows.
        Inherited member indicator setAutoRequestFocus Reveal DetailHide Detail
        Sets whether this window should receive focus on subsequently being shown (with a call to setVisible(true)), or being moved to the front (with a call to Window.toFront()).
        Inherited member indicator setDropTarget Reveal DetailHide Detail
        Associate a DropTarget with this component.
        Inherited member indicator setFocusableWindowState Reveal DetailHide Detail
        Sets whether this Window can become the focused Window if it meets the other requirements outlined in isFocusableWindow.
        Inherited member indicator setIconImage Reveal DetailHide Detail
        Sets the image to be displayed as the icon for this window.
        Inherited member indicator setIconImages Reveal DetailHide Detail
        Sets the sequence of images to be displayed as the icon for this window.
        Inherited member indicator setLocationByPlatform Reveal DetailHide Detail
        Sets whether this Window should appear at the default location for the native windowing system or at the current location (returned by getLocation) the next time the Window is made visible.
        Inherited member indicator setLocationRelativeTo Reveal DetailHide Detail
        Sets the location of the window relative to the specified component according to the following scenarios.
        Ordinary member indicator setModal Reveal DetailHide Detail
        Specifies whether this dialog should be modal.
        Inherited member indicator setModalExclusionType Reveal DetailHide Detail
        Specifies the modal exclusion type for this window.
        Ordinary member indicator setModalityType Reveal DetailHide Detail
        Sets the modality type for this dialog.
        Overridden member indicator setOpacity Reveal DetailHide Detail
        Sets the opacity of the window.
        Ordinary member indicator setResizable Reveal DetailHide Detail
        Sets whether this dialog is resizable by the user.
        Overridden member indicator setShape Reveal DetailHide Detail
        Sets the shape of the window.
        Ordinary member indicator setTitle Reveal DetailHide Detail
        Sets the title of the Dialog.
        Inherited member indicator setType Reveal DetailHide Detail
        Sets the type of the window.
        Ordinary member indicator setUndecorated Reveal DetailHide Detail
        Disables or enables decorations for this dialog.
        Overridden member indicator toBack Reveal DetailHide Detail
        If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.
        Inherited member indicator toFront Reveal DetailHide Detail
        If this Window is visible, brings this Window to the front and may make it the focused Window.
        Inherited member indicator toString Reveal DetailHide Detail
        Returns a string representation of this component and its values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge