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

Profile: desktop, common

Overview

Displays a modal message box to the user. This class should not be instantiated directly. Instead use one of the static methods.

Inherited Variables

Script Function Summary

public show(scene: Scene, message: java.lang.String, title: java.lang.String) : Void

Displays a modal message box with the specified text and title.

Displays a modal message box with the specified text and title.

Parameters
scene
The scene in which the message box should appear.
message
The text content of the message box.
title
The message box' title.
 
public show(scene: Scene, message: java.lang.String, title: java.lang.String, action: com.sun.javafx.functions.Function1) : Void

Displays a modal message box with the specified text, title and function, which is called when the message box is closed.

Displays a modal message box with the specified text, title and function, which is called when the message box is closed.

Parameters
scene
The scene in which the message box should appear.
message
The text content of the message box.
title
The message box' title.
action

A function taking a single argument of type Integer, which is invoked when the message box is closed. The argument provides the MessageBoxResult.

 
public show(scene: Scene, message: java.lang.String, title: java.lang.String, action: com.sun.javafx.functions.Function1, buttons: Integer) : Void

Displays a modal message box with the specified text, title, buttons and function, which is called when the message box is closed.

Displays a modal message box with the specified text, title, buttons and function, which is called when the message box is closed.

Parameters
scene
The scene in which the message box should appear.
message
The text content of the message box.
title
The message box' title.
action

A function taking a single argument of type Integer, which is invoked when the message box is closed. The argument provides the MessageBoxResult.

buttons

A member of the MessageBoxButtons class specifying what buttons the message box should display.

 

Inherited Functions