|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog
Dialogs are capable of generating the following window events: WindowOpened, WindowClosing, WindowClosed, WindowActivated, WindowDeactivated.
WindowEvent
,
Window.addWindowListener(java.awt.event.WindowListener)
, Serialized FormFields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
Constructor Summary | |
Dialog(Dialog owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with a title. |
|
Dialog(Dialog owner,
String title)
Constructs an initially invisible Dialog with a title. |
|
Dialog(Dialog owner)
Constructs an initially invisible Dialog with an empty title. |
|
Dialog(Frame owner,
boolean modal)
Constructs an initially invisible Dialog with an empty title. |
|
Dialog(Frame owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with a title. |
|
Dialog(Frame owner,
String title)
Constructs an initially invisible Dialog with a title. |
|
Dialog(Frame owner)
Constructs an initially invisible Dialog with an empty title. |
Method Summary | |
void | addNotify()
Creates the dialog's peer. |
String | getTitle()
Gets the title of the dialog. |
boolean | isModal()
Indicates whether the dialog is modal. |
boolean | isResizable()
Indicates whether this dialog window is resizable. |
protected String | paramString()
Returns the parameter string representing the state of this dialog window. |
void | setModal(boolean b)
Specifies whether this dialog is modal. |
void | setResizable(boolean resizable)
Sets the resizable flag. |
void | setTitle(String title)
Sets the title of the Dialog. |
void | show()
Shows the dialog. |
Methods inherited from class java.awt.Window | |
addWindowListener , applyResourceBundle , applyResourceBundle , dispose , getFocusOwner , getInputContext , getLocale , getOwnedWindows , getOwner , getToolkit , getWarningString , isShowing , pack , postEvent , processEvent , processWindowEvent , removeWindowListener , toBack , toFront |
Methods inherited from class java.awt.Container | |
add , add , add , add , add , addContainerListener , addImpl , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getAlignmentX , getAlignmentY , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getInsets , getLayout , getMaximumSize , getMinimumSize , getPreferredSize , insets , invalidate , isAncestorOf , layout , list , list , locate , minimumSize , paint , paintComponents , preferredSize , print , printComponents , processContainerEvent , remove , remove , removeAll , removeContainerListener , removeNotify , setLayout , update , validate , validateTree |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
Constructor Detail |
public Dialog(Frame owner)
owner
- the owner of the dialogowner
is null
Component.setSize(int, int)
,
Component.setVisible(boolean)
public Dialog(Frame owner, boolean modal)
owner
- the owner of the dialog
modal
- if true, dialog blocks input to the parent window when shownowner
is null
public Dialog(Frame owner, String title)
owner
- the owner of the dialog
title
- the title of the dialog. A null
value
will be accepted without causing a NullPointerException
to be thrown.owner
is null
Component.setSize(int, int)
,
Component.setVisible(boolean)
public Dialog(Frame owner, String title, boolean modal)
owner
- the owner of the dialog
title
- the title of the dialog. A null
value
will be accepted without causing a NullPointerException
to be thrown.
modal
- if true, dialog blocks input to the parent window when shownowner
is null
Component.setSize(int, int)
,
Component.setVisible(boolean)
public Dialog(Dialog owner)
owner
- the owner of the dialogowner
is null
public Dialog(Dialog owner, String title)
owner
- the owner of the dialog
title
- the title of the dialog. A null
value
will be accepted without causing a NullPointerException
to be thrown.owner
is null
public Dialog(Dialog owner, String title, boolean modal)
owner
- the owner of the dialog
title
- the title of the dialog. A null
value
will be accepted without causing a NullPointerException to
be thrown.
modal
- if true, dialog blocks input to the owning window when shownowner
is null
Method Detail |
public void addNotify()
public boolean isModal()
true
if this dialog window is modal;
false
otherwise.setModal(boolean)
public void setModal(boolean b)
isModal()
public String getTitle()
null
.setTitle(java.lang.String)
public void setTitle(String title)
title
- the new title being given to the dialoggetTitle()
public void show()
Component.hide()
public boolean isResizable()
true
if the user can resize the dialog;
false
otherwise.setResizable(boolean)
public void setResizable(boolean resizable)
resizable
- true
if the user can
resize this dialog; false
otherwise.isResizable()
protected String paramString()
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |