Stage.
| Modifier and Type | Field and Description |
|---|---|
| public static final StageStyle | DECORATED
Defines a normal |
| public static final StageStyle | EXTENDED
Deprecated
since 25. This is a preview feature which may be changed or removed in a future release.
Defines a Stage style in which the client area is extended into the header bar area, removing
the separation between the two areas and allowing applications to place scene graph nodes in the header
bar area of the stage.
|
| public static final StageStyle | TRANSPARENT
Defines a |
| public static final StageStyle | UNDECORATED
Defines a |
| public static final StageStyle | UNIFIED
Defines a |
| public static final StageStyle | UTILITY
Defines a lightweight |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StageStyle | |
| public static StageStyle[] |
| DECORATED | back to summary |
|---|---|
| public static final StageStyle DECORATED Defines a normal | |
| EXTENDED | back to summary |
|---|---|
| public static final StageStyle EXTENDED
Deprecated since 25. This is a preview feature which may be changed or removed in a future release. Defines a
This is a conditional feature, to check if it is supported see UsageAn extended window has the default header buttons (iconify, maximize, close), but no system-provided draggable header bar. Applications need to provide their own header bar by placing aHeaderBar
control in the scene graph. The HeaderBar control should be positioned at the top of the window
and its width should extend the entire width of the window, as otherwise the layout of the default window
buttons and the header bar content might not be aligned correctly. Usually, HeaderBar is combined
with a BorderPane root container:
Color schemeThe color scheme of the default header buttons is automatically adjusted to remain easily recognizable by inspecting theScene. property to gauge the brightness of the user
interface. Applications should set the scene fill to a color that matches the user interface of the header
bar area, even if the scene fill is not visible because it is obscured by other controls.
Custom header buttonsIf more control over the header buttons is desired, applications can opt out of the default header buttons by settingHeaderBar#setPrefButtonHeight(Stage, double) to zero and providing custom header buttons
instead. Any JavaFX control can be used as a custom header button by setting its semantic type with the
HeaderBar#setButtonType(Node, HeaderButtonType) method.
Title textAn extended stage has no title text. Applications that require title text need to provide their own implementation by placing aLabel or a similar control in the custom header bar.
Note that the value of Stage#titleProperty() may still be used by the platform, for example
in the title of miniaturized preview windows.
| |
| TRANSPARENT | back to summary |
|---|---|
| public static final StageStyle TRANSPARENT Defines a | |
| UNDECORATED | back to summary |
|---|---|
| public static final StageStyle UNDECORATED Defines a | |
| UNIFIED | back to summary |
|---|---|
| public static final StageStyle UNIFIED Defines a Note To see the effect, the
| |
| UTILITY | back to summary |
|---|---|
| public static final StageStyle UTILITY Defines a lightweight Utility stages may restrict window operations like maximize, minimize, and fullscreen depending on the platform. They are designed to float above primary windows without acting as a main application stage. | |
| StageStyle | back to summary |
|---|---|
| private StageStyle() | |
| valueOf | back to summary |
|---|---|
| public static StageStyle valueOf(String name) | |
| values | back to summary |
|---|---|
| public static StageStyle[] values() | |