public class DialogWindow extends AbstractPanelPopupWindow
PanelPopupWindow managing a JDialog.| Constructor and Description |
|---|
DialogWindow(Component owner,
CPanelPopup panel)
Creates a new window.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Makes this window invisible
|
protected JDialog |
createDialog(Component owner)
Creates a new dialog with the ancestor window of
owner
as owner. |
boolean |
isOpen()
Tells whether this window is visible or not.
|
void |
open(Component relativeTo)
Opens the dialog relative to
relativeTo. |
void |
open(int x,
int y)
Shows the dialog at the given screen location.
|
void |
setContent(Component content)
Sets the contents of the dialog.
|
void |
setUndecorated(boolean undecorated)
Sets whether the dialog has a decoration or not.
|
addListener, fireClosed, listeners, removeListener, validateBoundspublic DialogWindow(Component owner, CPanelPopup panel)
owner - the parent of the dialogpanel - the owner of the dialogpublic void setUndecorated(boolean undecorated)
undecorated - whether to decorate or notDialog.setUndecorated(boolean)public void setContent(Component content)
content - the contents, may be nullpublic void open(int x,
int y)
x - the dialogs locationy - the dialogs locationpublic void open(Component relativeTo)
relativeTo.relativeTo - some componentpublic boolean isOpen()
PanelPopupWindowtrue if visiblepublic void close()
PanelPopupWindowCopyright © 2018. All rights reserved.