java.awt.Dialog (JDK 1.0)
This class represents a dialog box window. A Dialog may be modal so that it blocks user input to all other windows until dismissed, may optionally have a title, and may be resizable. A Dialog object is a Container and Component objects can be added to it in the normal way with the add() method. The default LayoutManager for Dialog is BorderLayout. You may specify a different LayoutManager object with setLayout(). Call the pack() method of Window to initiate layout management of the dialog and set its initial size appropriately. Call show() to pop a dialog up, and hide() to pop it down. For modal dialogs, show() blocks until the dialog is dismissed. Event handling continues while show() is blocked, using a new event dispatcher thread. In Java 1.0, show() is inherited from Window. Call the Window.dispose() method when the Dialog is no longer needed so that its window system resources may be reused.
public classDialogextends Window { //Public Constructors1.1 publicDialog(Frameparent); publicDialog(Frameparent, booleanmodal); 1.1 publicDialog(Frameparent, Stringtitle); publicDialog(Frameparent, Stringtitle, booleanmodal); //Public Instance Methodspublic voidaddNotify(); //Overrides Windowpublic StringgetTitle(); public booleanisModal(); public booleanisResizable(); 1.1 public voidsetModal(booleanb); public synchronized voidsetResizable(booleanresizable); public synchronized voidsetTitle(Stringtitle); 1.1 public voidshow(); //Overrides Window//Protected Instance Methodsprotected StringparamString(); //Overrides Container}
Hierarchy:
Object->Component(ImageObserver, MenuContainer, Serializable)-> Container->Window->Dialog
Extended By:
FileDialog
Passed To:
Toolkit.createDialog()