JDialog

Extends
Dialog
Methods
7
Fields
4

Getting one

JDialog.new(…)

Methods

MethodReturnsDescription
setDefaultCloseOperation(number)()What the user's close does after the WindowListeners: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE (the default) or DISPOSE_ON_CLOSE. Any oth…
getDefaultCloseOperation()numberThe default close operation.
getContentPane()Container?The content pane: what add, remove and setLayout act on.
setContentPane(Container?)()Makes contentPane the dialog's content (from wherever it was); nil raises.
new(Dialog, boolean)JDialog() -> JDialog: A modeless dialog with no owner and an empty title.
new(Frame?, boolean)JDialog
new(AwtWindow?, string?)JDialog
new(Dialog, string?, boolean)JDialog
new(Frame?, string?, boolean)JDialog
init(JDialog, Dialog, boolean)()(JDialog) -> (): A modeless dialog with no owner and an empty title.
init(JDialog, Frame?, boolean)()
init(JDialog, AwtWindow?, string?)()
init(JDialog, Dialog, string?, boolean)()
init(JDialog, Frame?, string?, boolean)()
isInstance(any)booleanWhether obj is a JDialog object, a class(JDialog) subclass's included.

Fields

FieldTypeDescription
DO_NOTHING_ON_CLOSEnumberWindowConstants.DO_NOTHING_ON_CLOSE: 0.
HIDE_ON_CLOSEnumberWindowConstants.HIDE_ON_CLOSE: 1 (the default).
DISPOSE_ON_CLOSEnumberWindowConstants.DISPOSE_ON_CLOSE: 2.
superDialogClassDialog's class table: the base class.

Returned by

MethodReturnsDescription
JDialogClass.newJDialog() -> JDialog: A modeless dialog with no owner and an empty title.

Method details

setDefaultCloseOperation

setDefaultCloseOperation: (JDialog, number) -> ()

What the user's close does after the WindowListeners: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE (the default) or DISPOSE_ON_CLOSE. Any other value raises.

new

new: ((Dialog, boolean) -> JDialog) & ((Frame?, boolean) -> JDialog) & ((AwtWindow?, string?) -> JDialog) & ((Dialog, string?, boolean) -> JDialog) & ((Frame?, string?, boolean) -> JDialog)

() -> JDialog: A modeless dialog with no owner and an empty title.

(AwtWindow?) -> JDialog: A modeless dialog owned by owner (a JFrame or JDialog, or nil).

(Dialog, boolean) -> JDialog: A dialog owned by the dialog owner, modal when modal.

(Frame?, boolean) -> JDialog: A dialog owned by the frame owner (or none), modal when modal.

(AwtWindow?, string?) -> JDialog: A modeless dialog owned by owner, titled title.

(Dialog, string?, boolean) -> JDialog: A dialog owned by the dialog owner, titled title, modal when modal.

(Frame?, string?, boolean) -> JDialog: A dialog owned by the frame owner (or none), titled title, modal when modal.

init

init: ((JDialog, Dialog, boolean) -> ()) & ((JDialog, Frame?, boolean) -> ()) & ((JDialog, AwtWindow?, string?) -> ()) & ((JDialog, Dialog, string?, boolean) -> ()) & ((JDialog, Frame?, string?, boolean) -> ())

(JDialog) -> (): A modeless dialog with no owner and an empty title.

(JDialog, AwtWindow?) -> (): A modeless dialog owned by owner (a JFrame or JDialog, or nil).

(JDialog, Dialog, boolean) -> (): A dialog owned by the dialog owner, modal when modal.

(JDialog, Frame?, boolean) -> (): A dialog owned by the frame owner (or none), modal when modal.

(JDialog, AwtWindow?, string?) -> (): A modeless dialog owned by owner, titled title.

(JDialog, Dialog, string?, boolean) -> (): A dialog owned by the dialog owner, titled title, modal when modal.

(JDialog, Frame?, string?, boolean) -> (): A dialog owned by the frame owner (or none), titled title, modal when modal.

isInstance

isInstance: (any) -> boolean

Whether obj is a JDialog object, a class(JDialog) subclass's included.