Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt

Class Dialog

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


public class Dialog

extends Window

A dialog box widget class.

Authors:

Constructor Summary

Dialog(java.awt.Frame parent)

Initializes a new instance of Dialog with the specified parent, that is not resizable and not modal, and which has no title.
Dialog(java.awt.Frame parent, boolean modal)

Initializes a new instance of Dialog with the specified parent and modality, that is not resizable and which has no title.
Dialog(java.awt.Frame parent, java.lang.String title)

Initializes a new instance of Dialog with the specified parent, that is not resizable and not modal, and which has the specified title.
Dialog(java.awt.Frame parent, java.lang.String title, boolean modal)

Initializes a new instance of Dialog with the specified, parent, title, and modality, that is not resizable.
Dialog(java.awt.Dialog owner)

Dialog(java.awt.Dialog owner, java.lang.String title)

Initializes a new instance of Dialog with the specified, parent and title, that is not resizable.
Dialog(java.awt.Dialog owner, java.lang.String title, boolean modal)

Initializes a new instance of Dialog with the specified, parent, title and modality, that is not resizable.

Method Summary

synchronized voidaddNotify()

Creates this object's native peer.
java.lang.StringgetTitle()

Returns the title of this dialog box.
booleanisModal()

Tests whether or not this dialog box is modal.
booleanisResizable()

Tests whether or not this dialog box is resizable.
java.lang.StringparamString()

Returns a debugging string for this component.
voidsetModal(boolean modal)

Changes the modality of this dialog box.
synchronized voidsetResizable(boolean resizable)

Changes the resizability of this dialog box.
synchronized voidsetTitle(java.lang.String title)

Sets the title of this dialog box to the specified string.
voidshow()

Makes this dialog visible and brings it to the front.

Constructor Details

Dialog

public Dialog(java.awt.Dialog owner)

Parameters:


Dialog

public Dialog(java.awt.Dialog owner, java.lang.String title)

Initializes a new instance of Dialog with the specified, parent and title, that is not resizable.

Since:Parameters:

Throws:


Dialog

public Dialog(java.awt.Dialog owner, java.lang.String title, boolean modal)

Initializes a new instance of Dialog with the specified, parent, title and modality, that is not resizable.

Since:Parameters:

Throws:


Dialog

public Dialog(java.awt.Frame parent)

Initializes a new instance of Dialog with the specified parent, that is not resizable and not modal, and which has no title.

Parameters:

Throws:


Dialog

public Dialog(java.awt.Frame parent, boolean modal)

Initializes a new instance of Dialog with the specified parent and modality, that is not resizable and which has no title.

Parameters:

Throws:


Dialog

public Dialog(java.awt.Frame parent, java.lang.String title)

Initializes a new instance of Dialog with the specified parent, that is not resizable and not modal, and which has the specified title.

Parameters:

Throws:


Dialog

public Dialog(java.awt.Frame parent, java.lang.String title, boolean modal)

Initializes a new instance of Dialog with the specified, parent, title, and modality, that is not resizable.

Parameters:


Method Details

addNotify

public synchronized void addNotify()

Creates this object's native peer.


getTitle

public String getTitle()

Returns the title of this dialog box.

Returns:


isModal

public boolean isModal()

Tests whether or not this dialog box is modal.

Returns:


isResizable

public boolean isResizable()

Tests whether or not this dialog box is resizable.

Returns:


paramString

protected String paramString()

Returns a debugging string for this component.

Returns:


setModal

public void setModal(boolean modal)

Changes the modality of this dialog box. This can only be done before the peer is created.

Parameters:


setResizable

public synchronized void setResizable(boolean resizable)

Changes the resizability of this dialog box.

Parameters:


setTitle

public synchronized void setTitle(java.lang.String title)

Sets the title of this dialog box to the specified string.

Parameters:


show

public void show()

Makes this dialog visible and brings it to the front.