public class Dialog extends Panel
If several dialogs are shown, they are stacked and only the last one is active.
Constructor and Description |
---|
Dialog()
Creates a new dialog.
Identical to new Dialog(0, 0, 0, 0) . |
Modifier and Type | Method and Description |
---|---|
void |
show(Desktop desktop)
Requests the panel to be shown on the specified desktop.
|
void |
show(Desktop desktop,
boolean fill)
Requests the dialog to be shown on the specified desktop.
|
becameActive, becameInactive, contains, getDesktop, getEventHandler, getFocus, getHeight, getPreferredHeight, getPreferredWidth, getWidget, getWidgetAt, getWidth, getX, getY, handleEvent, hide, hideNotify, invalidate, isActive, isPacked, isShown, isTransparent, isValid, render, repaint, repaint, revalidate, setBounds, setEventHandler, setFocus, setLocation, setPacked, setPreferredSize, setSize, setWidget, showNotify, validate, validate
public Dialog()
new Dialog(0, 0, 0, 0)
.public void show(Desktop desktop) throws java.lang.NullPointerException
Panel
Identical to calling Panel.show(Desktop, boolean)
without filling the desktop.
show
in class Panel
desktop
- the desktopjava.lang.NullPointerException
- if desktop
is null
.Panel.show(Desktop, boolean)
,
Panel.hide()
,
Panel.isShown()
,
Panel.revalidate()
public void show(Desktop desktop, boolean fill) throws java.lang.NullPointerException
The method does not return while the dialog is shown. During this period, all the input events are sent only to this dialog and its children. Beware that:
show
in class Panel
desktop
- the desktopfill
- true
to fit the panel to the desktop size, false
otherwisejava.lang.NullPointerException
- if desktop
is null
.Panel.hide()
,
Panel.isShown()
,
Panel.revalidate()