JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

This is a abstract base class for all top-level windows. A window is a toplevel canvas for displaying scene nodes on desktop platforms.

Attribute Summary

nametypedescription
Public
closeActionfunction():Void More: [+]
heightInteger More: [+]
iconsImage[]

Defines the icon images to be used in the window decorations and when minimized.

More: [+]

Defines the icon images to be used in the window decorations and when minimized. The images should be different sizes of the same thing and the best size will be chosen, eg. 16x16, 32,32.

nameString More: [+]
opacityNumber

Defines the opacity of the whole of this Window (Both the window and its content).

More: [+]

Defines the opacity of the whole of this Window (Both the window and its content). The opacity is at the range [0..1]. Once this has been changed to a non 1.0 value then there may be a performance penalty depending on platform. A value of 0.0 may or may not disable the mouse event handling on this Window. If this window is maximized this property will have no effect as maximized windows can only be 100% opaque. This is a platform-dependent behavior. This only has effect if the platform supports it. Currently Sun Java 6u10 or newer and Apple Java support this.

resizableBoolean

Defines whether this Window is resizable by the user.

More: [+]

Defines whether this Window is resizable by the user.

stageStage

This is the stage that the window presents on screen for showing content.

More: [+]

This is the stage that the window presents on screen for showing content.

titleString

Defines the title of the Window.

More: [+]

Defines the title of the Window.

visibleBoolean More: [+]
widthInteger More: [+]
windowStyleWindowStyle

Defines the possible styles for a Window which are: WindowStyle.DECORATED, WindowStyle.UNDECORATED, or WindowStyle.TRANSPARENT.

More: [+]

Defines the possible styles for a Window which are: WindowStyle.DECORATED, WindowStyle.UNDECORATED, or WindowStyle.TRANSPARENT.

Note: this attribute can only be set once. Any changes after the constructor is called will be ignored.

xInteger More: [+]
yInteger More: [+]
Protected
canvasStageCanvasStageImpl More: [+]
windowWindow More: [+]

Inherited Attributes

Function Summary

public close() : Void

Close this window and indicate that there's no intention to use it again.

More: [+]

Close this window and indicate that there's no intention to use it again. If this is an application (vs. Applet), VM will exit after all windows are closed provided all Timelines are stoped as well. Window *can* be shown again with visible = true.

public toBack() : Void

If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.

More: [+]

If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.

public toFront() : Void

If this Window is visible, brings this Window to the front and may make it the focused Window.

More: [+]

If this Window is visible, brings this Window to the front and may make it the focused Window.

Inherited Functions