Overview
Extension of javafx.stage.Stage that allows the creation of first-class Java Dialogs from JavaFX-only code. Dialogs can be created via declarative syntax and have any other Stage as their owner window. Some features not available on Stage include the ability to "pack" the window to the size of the contents, specify modality, and force the window to be on top.
This class is named JFXDialog to avoid future name collisions with JavaFX Dialog support when released. At that time this class will be changed to extend the official Dialog class, providing forward interoperability.
Profile: desktop
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | dialog | Object | ![]() | ![]() | ![]() |
Returns the raw javax.swing.JDialog class that backs this Dialog instance.
Returns the raw javax.swing.JDialog class that backs this Dialog instance. Please submit a request for any functionality you find that you need to access directly using this variable so it can be added to the JFXDialog API. |
|
| public-init protected | independentFocus | Boolean | ![]() | ![]() | subclass |
Allows an ownerless dialog to be focused independently from other ownerless windows.
Allows an ownerless dialog to be focused independently from other ownerless windows. This has no effect if owner is non-null. |
|
| public-init protected | modal | Boolean | ![]() | ![]() | subclass |
Whether this Dialog blocks user input in the owner Window until dismissed. |
|
| public-init protected | owner | Stage | ![]() | ![]() | subclass |
Owner window of this Dialog |
Inherited Variables
org.jfxtras.stage.JFXStage
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | alwaysOnTop | Boolean | ![]() | ![]() | ![]() |
If set to true, this Dialog will float on top of all other windows. |
Inherited Functions
org.jfxtras.stage.JFXStage
- public getWindow() : java.awt.Window
-
Returns the java.awt.Window associated with this Stage.
Returns the java.awt.Window associated with this Stage. This will return null until the Stage is fully initialized (after postinit).
Please submit a request for any functionality you find that you need to access directly using this variable so it can be added to the JFXStage API.
-
Returns
- Window
- The java.awt.Window associated with this Stage
