Java javafx.stage Stage fields, constructors, methods, implement or subclass

Example usage for Java javafx.stage Stage fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.stage Stage.

The text is from its open source code.

Subclass

javafx.stage.Stage has subclasses.
Click this link to see all its subclasses.

Constructor

Stage()
Creates a new instance of decorated Stage .
Stage(@NamedArg(value = "style", defaultValue = "DECORATED") StageStyle style)
Creates a new instance of Stage .

Method

voidaddEventFilter(final EventType eventType, final EventHandler eventFilter)
Registers an event filter to this node.
voidaddEventHandler(final EventType eventType, final EventHandler eventHandler)
Registers an event handler to this node.
voidcenterOnScreen()
Sets x and y properties on this Window so that it is centered on the curent screen.
voidclose()
Closes this Stage .
voidfireEvent(Event event)
Fires the specified event.
ReadOnlyBooleanPropertyfocusedProperty()
ReadOnlyBooleanPropertyfullScreenProperty()
doublegetHeight()
ObservableListgetIcons()
Gets the icon images to be used in the window decorations and when minimized.
EventHandlergetOnCloseRequest()
ScenegetScene()
doublegetWidth()
doublegetX()
doublegetY()
ReadOnlyDoublePropertyheightProperty()
voidhide()
Attempts to hide this Window by setting the visibility to false.
ReadOnlyBooleanPropertyiconifiedProperty()
voidinitModality(Modality modality)
Specifies the modality for this stage.
voidinitOwner(Window owner)
Specifies the owner Window for this stage, or null for a top-level, unowned stage.
voidinitStyle(StageStyle style)
Specifies the style for this stage.
booleanisFullScreen()
booleanisIconified()
booleanisMaximized()
booleanisShowing()
ObjectProperty>onCloseRequestProperty()
voidsetAlwaysOnTop(boolean value)
voidsetFullScreen(boolean value)
voidsetFullScreenExitKeyCombination(KeyCombination keyCombination)
Specifies the KeyCombination that will allow the user to exit full screen mode.
voidsetHeight(double value)
voidsetIconified(boolean value)
voidsetMaxHeight(double value)
voidsetMaximized(boolean value)
voidsetMaxWidth(double value)
voidsetMinHeight(double value)
voidsetMinWidth(double value)
voidsetOnCloseRequest(EventHandler value)
voidsetOnHidden(EventHandler value)
voidsetOnHiding(EventHandler value)
voidsetOnShown(EventHandler value)
voidsetResizable(boolean value)
voidsetScene(Scene value)
Specify the scene to be used on this stage.
voidsetTitle(String value)
voidsetWidth(double value)
voidsetX(double value)
voidsetY(double value)
voidshow()
voidshowAndWait()
Shows this stage and waits for it to be hidden (closed) before returning to the caller.
voidsizeToScene()
Set the width and height of this Window to match the size of the content of this Window's Scene.
StringPropertytitleProperty()
voidtoBack()
Send the Window to the background.
voidtoFront()
Bring the Window to the foreground.
ReadOnlyDoublePropertywidthProperty()
ReadOnlyDoublePropertyxProperty()
ReadOnlyDoublePropertyyProperty()