|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface implemented by a dialog window. Like with swing's
JDialog
or JInternalFrame
, you don't actually
add components to the dialog itself, but rather to it's content pane,
which is returned by getContentPane()
.
Method Summary | |
void |
addCloseRunnable(java.lang.Runnable r)
Add a runnable that will be invoked when this dialog is closed. |
void |
addWindowListener(java.awt.event.WindowListener l)
Adds the specified window listener to receive window events. |
void |
center()
Center this dialog on the screen. |
void |
dispose()
Dispose of this dialog. |
java.awt.Rectangle |
getBounds()
Get the bounds of this dialog, ie the position and size of the window. |
java.awt.Container |
getContentPane()
Return the content-pane. |
java.lang.String |
getTitle()
Get the title of this dialog. |
void |
pack()
Cause the dialog to be sized to fit the preferred size of it's sub- components. |
void |
removeCloseRunnable(java.lang.Runnable r)
Remove the runnable from the list of runnables that will get run when this dialog is closed. |
void |
removeWindowListener(java.awt.event.WindowListener l)
Removes the specified window listener so that it no longer receives window events from this component |
void |
setBounds(java.awt.Rectangle r)
Set the bounds of this dialog, ie. |
void |
setVisible(boolean visible)
Called to set the visible state of this dialog. |
void |
showModal()
Show as modal dialog. |
void |
toFront()
Bring this dialog to the front. |
Method Detail |
public java.lang.String getTitle()
public void setVisible(boolean visible)
visible
- the new visible statepublic java.awt.Rectangle getBounds()
public void setBounds(java.awt.Rectangle r)
r
- the new boundspublic void toFront()
public void center()
public java.awt.Container getContentPane()
public void pack()
public void dispose()
public void showModal()
public void addCloseRunnable(java.lang.Runnable r)
r
- the runnablepublic void removeCloseRunnable(java.lang.Runnable r)
r
- the runnablepublic void addWindowListener(java.awt.event.WindowListener l)
l
- the listenerpublic void removeWindowListener(java.awt.event.WindowListener l)
l
- the listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |