java.awt
Class Dialog
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
public class
Dialogextends
Window A dialog box widget class.
Authors:- Aaron M. Renn (arenn@urbanophile.com)
- Tom Tromey <tromey@redhat.com>
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:
addNotify
public synchronized void addNotify()
Creates this object's native peer.
getTitle
public String getTitle()
Returns the title of this dialog box.
Returns:
- The title of this dialog box.
isModal
public boolean isModal()
Tests whether or not this dialog box is modal.
Returns:
true
if this dialog box is modal,
false
otherwise.
isResizable
public boolean isResizable()
Tests whether or not this dialog box is resizable.
Returns:
true
if this dialog is resizable, false
,
otherwise.
paramString
protected String paramString()
Returns a debugging string for this component.
Returns:
- A debugging string for this component.
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.