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

Profile: desktop, common

Overview

A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user.

This class exists temporarily to allow for building applications based on hierarchies of Swing based Components. In the future, the intention is to turn Component into a Node and move layout into the Node world. At that time, this class will dissapear, and only javafx.application.Dialog will remain.

Attribute Summary

nametypedescription
Public
resizableBoolean

Defines whether this dialog is resizable by the user.

More: [+]

Defines whether this dialog is resizable by the user.

titleString

Defines the title of the Dialog.

More: [+]

Defines the title of the Dialog.

Protected

Inherited Attributes

javafx.ext.swing.SwingWindow

nametypedescription
backgroundColor More: [+]
closeActionfunction():Void More: [+]
contentComponent

This Window's content.

More: [+]

This Window's content.

heightInteger More: [+]
iconsImage[]

Defines the icon images to be used in the window decorations and when minimized.

More: [+]

Defines the icon images to be used in the window decorations and when minimized. The images should be different sizes of the same thing and the best size will be chosen, eg. 16x16, 32,32.

nameString More: [+]
ownerSwingWindow More: [+]
visibleBoolean More: [+]
widthInteger More: [+]
xInteger More: [+]
yInteger More: [+]

Function Summary

public getJDialog() : javax.swing.JDialog

Returns the JDialog delegate for this dialog.

More: [+]

Returns the JDialog delegate for this dialog.

Returns
JDialog

Inherited Functions

javafx.ext.swing.SwingWindow

public close() : Void

Close this window and indicate that there's no intention to use it again.

More: [+]

Close this window and indicate that there's no intention to use it again. If this is an application (vs. Applet), VM will exit after all windows are closed provided all Timelines are stoped as well. Window *can* be shown again with visible = true.

public getAWTWindow() : java.awt.Window

Returns the java.awt.Window delegate for this window.

More: [+]

Returns the java.awt.Window delegate for this window.

Returns
Window
public bound getName() : java.lang.String

Returns this Window's name, or null if it doesn't have a name.

More: [+]

Returns this Window's name, or null if it doesn't have a name.

Returns
String
this Window's name or null
public bound getParent() : Container

Returns null.

More: [+]

Returns null. Windows don't have parents.

Returns
Container
null
protected remove(component: Component) : Void

More: [+]

Called when a Component is being reparented to notify its old Container that it is to be removed.

Parameters
component
public toBack() : Void

If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.

More: [+]

If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.

public toFront() : Void

If this Window is visible, brings this Window to the front and may make it the focused Window.

More: [+]

If this Window is visible, brings this Window to the front and may make it the focused Window.

javafx.ext.swing.Container

public abstract bound getName() : java.lang.String

Returns this Container's name, or null if it doesn't have a name.

More: [+]

Returns this Container's name, or null if it doesn't have a name.

Returns
String
this Container's name or null
public abstract bound getParent() : Container

Returns this Container's parent Container, or null if it doesn't have a parent.

More: [+]

Returns this Container's parent Container, or null if it doesn't have a parent.

Returns
Container
this Container's parent or null
protected parentToThisContainer(component: Component) : Void

Parents the given Component to this Container.

More: [+]

Parents the given Component to this Container. First, unparents the Component from its current Container, if any, by calling remove(component). Then sets the Component's parent to this. Does nothing if the parameter is null or is already parented to this Container.

Parameters
component

the component to parent to this Container

protected abstract remove(component: Component) : Void

Called when a Component is being reparented to notify its old Container that it is to be removed.

More: [+]

Called when a Component is being reparented to notify its old Container that it is to be removed.

Parameters
component

the Component to remove

protected unparentFromThisContainer(component: Component) : Void

Unparents the given Component from this Container.

More: [+]

Unparents the given Component from this Container. If the given Component is currently parented to this Container, sets the Component's parent to null. Otherwise, does nothing. Does nothing if the parameter is null.

Parameters
component

the component to unparent from this Container