Packages This Package Prev Next Index
public class java.awt.Dialog
extends java.awt.Window (II-§1.42)
{
// Constructors
public Dialog(Frame parent, boolean modal); §1.12.1
public Dialog(Frame parent, String title, §1.12.2
boolean modal);
// Methods
public void addNotify(); §1.12.3
public String getTitle(); §1.12.4
public boolean isModal(); §1.12.5
public boolean isResizable(); §1.12.6
protected String paramString(); §1.12.7
public void setResizable(boolean resizable); §1.12.8
public void setTitle(String title); §1.12.9
}
This class represents a dialog window, a window that takes input from the user.
The AWT sends the dialog window all mouse, keyboard, and focus events that occur over it.
By default, the dialog window is invisible. The application must use the show method (II-§1.10.70) to cause the dialog window to appear.
The default layout for a dialog is BorderLayout.
public Dialog(Frame parent, boolean modal)
parent
- the owner of the dialog
modal
- if true, the dialog box blocks input to other windows while it is
visible
public Dialog(Frame parent, String title, boolean modal)
parent
- the owner of the dialog
title
- the title of the dialog
modal
- if true, dialog blocks input to other windows when shown
public void addNotify()
public String getTitle()
public boolean isModal()
public boolean isResizable()
protected String paramString()
public void setResizable(boolean resizable)
resizable
- true if this dialog window is resizable; false otherwise
public void setTitle(String title)
title
- the new title
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)