DialogNameDialog
DescriptionThe Dialog class provides a special type of display window that is used for pop-up messages and acquiring input from the user. Unlike most other components, dialogs are hidden by default; you must call show() to display them. Dialogs are always associated with a parent Frame. A Dialog may be either modal or non-modal; a modal dialog attracts all input typed by the user. The default layout for a Dialog is BorderLayout. Class Definition
public class java.awt.Dialog extends java.awt.Window { // Constructors public Dialog (Frame parent); public Dialog (Frame parent, boolean modal); public Dialog (Frame parent, String title); public Dialog (Frame parent, String title, boolean modal); // Instance Methods public void addNotify(); public String getTitle(); public boolean isModal(); public boolean isResizable(); public void setModal (boolean b); public synchronized void setResizable (boolean resizable); public synchronized void setTitle (String title); public void show(); // Protected Instance Methods protected String paramString(); } ConstructorsDialogpublic Dialog (Frame parent)
public Dialog (Frame parent, boolean modal)
public Dialog (Frame parent, String title)
public Dialog (Frame parent, String title, boolean modal)
Instance MethodsaddNotifypublic void addNotify()
getTitlepublic String getTitle()
isModalpublic boolean isModal()
isResizablepublic boolean isResizable()
setModalpublic void setModal (boolean b)
setResizablepublic synchronized void setResizable (boolean resizable)
setTitlepublic synchronized void setTitle (String title)
showpublic void show()
Protected Instance MethodsparamStringprotected String paramString()
See AlsoFileDialog, Frame, String, Window, WindowEvent, WindowListener |
|