taken from field
Specifies whether this Stage
should be a full-screen,
undecorated window.
The implementation of full-screen mode is platform and profile-dependent.
When set to true
, the Stage
will attempt to enter
full-screen mode when visible. Set to false
to return Stage
to windowed mode.
An IllegalStateException
is thrown if this property is set
on a thread other than the JavaFX Application Thread.
The full-screen mode will be exited (and the fullScreen
attribute
will be set to false
) if the full-screen
Stage
loses focus or if another Stage
enters
full-screen mode on the same Screen
. Note that a Stage
in full-screen mode can become invisible without losing its
full-screen status and will again enter full-screen mode when the
Stage
becomes visible.
Screen
the Stage will enter full-screen mode on by
setting its position to be within the bounds of that Screen
prior to entering full-screen mode.
However once in full-screen mode, Stage
's x
, y
,
width
, and height
variables will continue to represent
the non-full-screen position and size of the window; the same for
iconified
, resizable
, style
, and
opacity
. If changes are made to any of these attributes while in
full-screen mode, upon exiting full-screen mode the Stage
will
assume those attributes.
In case that more Stage
modes are set simultaneously their order
of importance is iconified
, fullScreen, maximized
(from
strongest to weakest).
The property is read only because it can be changed externally by the underlying platform and therefore must not be bindable.
The user can unconditionally exit full-screen mode at any time by pressing ESC
.
If a security manager is present, the application must have the
javafx.util.FXPermission
"unrestrictedFullScreen" in order
to enter full-screen mode with no restrictions. Applications without
permission will have the following restrictions:
Node.mousePressed/mouseReleased/mouseClicked
) or keyboard
( Node.keyPressed/keyReleased/keyTyped
) event handlers. It is
not allowed to enter full-screen mode in response to ESC
key. Attempting to enter full-screen mode from any other context will
be ignored.
If Stage
was constructed as full-screen but not visible
it will enter full-screen mode upon becoming visible, with the same
limitations to when this is allowed to happen as when setting
fullScreen
to true
.
UP, DOWN, LEFT, RIGHT, SPACE, TAB, PAGE_UP, PAGE_DOWN, HOME, END, ENTER
@defaultValue false
Diagram: Window