JFrame

Extends
Frame
Methods
7
Fields
5

Getting one

JFrame.new(…)

Methods

MethodReturnsDescription
setDefaultCloseOperation(number)()What the user's close does after the WindowListeners: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE (the default), DISPOSE_ON_CLOSE, or `EXIT_…
getDefaultCloseOperation()numberThe default close operation.
getContentPane()Container?The content pane: what add, remove and setLayout act on.
setContentPane(Container?)()Makes contentPane the frame's content (from wherever it was); nil raises.
new(string?)JFrame() -> JFrame: An invisible frame with an empty title and an empty content pane (a JPanel with a BorderLayout).
init(JFrame, string?)()(JFrame) -> (): An invisible frame with an empty title and an empty content pane (a JPanel with a BorderLayout).
isInstance(any)booleanWhether obj is a JFrame object, a class(JFrame) 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.
EXIT_ON_CLOSEnumberWindowConstants.EXIT_ON_CLOSE: 3. A plugin cannot exit the client: the close disposes the frame, as DISPOSE_ON_CLOSE does.
superFrameClassFrame's class table: the base class.

Returned by

MethodReturnsDescription
JFrameClass.newJFrame() -> JFrame: An invisible frame with an empty title and an empty content pane (a JPanel with a BorderLayout).

Method details

setDefaultCloseOperation

setDefaultCloseOperation: (JFrame, number) -> ()

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

new

new: (string?) -> JFrame

() -> JFrame: An invisible frame with an empty title and an empty content pane (a JPanel with a BorderLayout).

(string?) -> JFrame: An invisible frame titled title.

init

init: (JFrame, string?) -> ()

(JFrame) -> (): An invisible frame with an empty title and an empty content pane (a JPanel with a BorderLayout).

(JFrame, string?) -> (): An invisible frame titled title.

isInstance

isInstance: (any) -> boolean

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