JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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 XDialog 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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
delegateDialogStage
publicdialogJDialog

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 XDialog API.

 
public-init protectedindependentFocusBooleansubclass

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 protectedmodalBooleansubclass

Whether this Dialog blocks user input in the owner Window until dismissed.

public-init protectedownerStagesubclass

Owner window of this Dialog

Inherited Variables

org.jfxtras.stage.XStage

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicalwaysOnTopBoolean

If set to true, this Dialog will float on top of all other windows.

windowInitializedBoolean

Function Summary

createDelegate() : org.jfxtras.stage.DialogStage
Returns
DialogStage
 

Inherited Functions

org.jfxtras.stage.XStage

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 XStage API.

Returns
Window
The java.awt.Window associated with this Stage