Example usage for Java javafx.stage Stage fields, constructors, methods, implement or subclass
The text is from its open source code.
Stage() Creates a new instance of decorated Stage . | |
Stage(@NamedArg(value = "style", defaultValue = "DECORATED") StageStyle style) Creates a new instance of Stage . |
void | addEventFilter(final EventType Registers an event filter to this node. |
void | addEventHandler(final EventType Registers an event handler to this node. |
void | centerOnScreen() Sets x and y properties on this Window so that it is centered on the curent screen. |
void | close() Closes this Stage . |
void | fireEvent(Event event) Fires the specified event. |
ReadOnlyBooleanProperty | focusedProperty() |
ReadOnlyBooleanProperty | fullScreenProperty() |
double | getHeight() |
ObservableList | getIcons() Gets the icon images to be used in the window decorations and when minimized. |
EventHandler | getOnCloseRequest() |
Scene | getScene() |
double | getWidth() |
double | getX() |
double | getY() |
ReadOnlyDoubleProperty | heightProperty() |
void | hide() Attempts to hide this Window by setting the visibility to false. |
ReadOnlyBooleanProperty | iconifiedProperty() |
void | initModality(Modality modality) Specifies the modality for this stage. |
void | initOwner(Window owner) Specifies the owner Window for this stage, or null for a top-level, unowned stage. |
void | initStyle(StageStyle style) Specifies the style for this stage. |
boolean | isFullScreen() |
boolean | isIconified() |
boolean | isMaximized() |
boolean | isShowing() |
ObjectProperty | onCloseRequestProperty() |
void | setAlwaysOnTop(boolean value) |
void | setFullScreen(boolean value) |
void | setFullScreenExitKeyCombination(KeyCombination keyCombination) Specifies the KeyCombination that will allow the user to exit full screen mode. |
void | setHeight(double value) |
void | setIconified(boolean value) |
void | setMaxHeight(double value) |
void | setMaximized(boolean value) |
void | setMaxWidth(double value) |
void | setMinHeight(double value) |
void | setMinWidth(double value) |
void | setOnCloseRequest(EventHandler |
void | setOnHidden(EventHandler |
void | setOnHiding(EventHandler |
void | setOnShown(EventHandler |
void | setResizable(boolean value) |
void | setScene(Scene value) Specify the scene to be used on this stage. |
void | setTitle(String value) |
void | setWidth(double value) |
void | setX(double value) |
void | setY(double value) |
void | show() |
void | showAndWait() Shows this stage and waits for it to be hidden (closed) before returning to the caller. |
void | sizeToScene() Set the width and height of this Window to match the size of the content of this Window's Scene. |
StringProperty | titleProperty() |
void | toBack() Send the Window to the background. |
void | toFront() Bring the Window to the foreground. |
ReadOnlyDoubleProperty | widthProperty() |
ReadOnlyDoubleProperty | xProperty() |
ReadOnlyDoubleProperty | yProperty() |