All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.Dialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog

public class Dialog
extends Window
A class that produces a dialog - a window that takes input from the user. The default layout for a dialog is BorderLayout. Dialogs are capable of generating the following window events: WindowOpened, WindowClosing, WindowClosed, WindowActivated, WindowDeactivated.

See Also:
WindowEvent, addWindowListener

Constructor Index

 o Dialog(Frame)
Constructs an initially invisible Dialog with an empty title.
 o Dialog(Frame, boolean)
Constructs an initially invisible Dialog with an empty title.
 o Dialog(Frame, String)
Constructs an initially invisible Dialog with a title.
 o Dialog(Frame, String, boolean)
Constructs an initially invisible Dialog with a title.

Method Index

 o addNotify()
Creates the frame's peer.
 o getTitle()
Gets the title of the Dialog.
 o isModal()
Returns true if the Dialog is modal.
 o isResizable()
Returns true if the user can resize the dialog.
 o paramString()
Returns the parameter String of this Dialog.
 o setModal(boolean)
Specifies whether this Dialog is modal.
 o setResizable(boolean)
Sets the resizable flag.
 o setTitle(String)
Sets the title of the Dialog.
 o show()
Shows the dialog.

Constructors

 o Dialog
    method Dialog(parent=Frame) public 
Constructs an initially invisible Dialog with an empty title.

Parameters:
parent - the owner of the dialog
See Also:
setSize, setVisible
 o Dialog
    method Dialog(parent=Frame, -
                  modal=boolean) public 
Constructs an initially invisible Dialog with an empty title. A modal Dialog grabs all the input from the user.

Parameters:
parent - the owner of the dialog
modal - if true, dialog blocks input to other windows when shown
 o Dialog
    method Dialog(parent=Frame, -
                  title=String) public 
Constructs an initially invisible Dialog with a title.

Parameters:
parent - the owner of the dialog
title - the title of the dialog
See Also:
setSize, setVisible
 o Dialog
    method Dialog(parent=Frame, -
                  title=String, -
                  modal=boolean) public 
Constructs an initially invisible Dialog with a title. A modal Dialog grabs all the input from the user.

Parameters:
parent - the owner of the dialog
title - the title of the dialog
modal - if true, dialog blocks input to other windows when shown
See Also:
setSize, setVisible

Methods

 o addNotify
    method addNotify()  public     
Creates the frame's peer. The peer allows us to change the appearance of the frame without changing its functionality.

Overrides:
addNotify in class Window
 o isModal
    method isModal() returns boolean public     
Returns true if the Dialog is modal. A modal Dialog grabs all the input from the user.

 o setModal
    method setModal(b=boolean)  public     
Specifies whether this Dialog is modal. A modal Dialog grabs all the input from the user.

 o getTitle
    method getTitle() returns String public     
Gets the title of the Dialog.

See Also:
setTitle
 o setTitle
    method setTitle(title=String)  public    protect 
Sets the title of the Dialog.

Parameters:
title - the new title being given to the Dialog
See Also:
getTitle
 o show
    method show()  public     
Shows the dialog. This will bring the dialog to the front if the dialog is already visible. If the dialog is modal, this call will block until the dialog is taken down by calling hide or dispose. It is permissible to show modal dialogs from the event dispatching thread because the toolkit will ensure that another dispatching thread will run while the one which invoked show is blocked.

Overrides:
show in class Window
See Also:
hide
 o isResizable
    method isResizable() returns boolean public     
Returns true if the user can resize the dialog.

 o setResizable
    method setResizable(resizable=boolean)  public    protect 
Sets the resizable flag.

Parameters:
resizable - true if resizable; false otherwise
 o paramString
    method paramString() returns String Inheritable     
Returns the parameter String of this Dialog.

Overrides:
paramString in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index