JavaFX 2.1 MessageBox

Viewed 68563

Good day!
I am developing a program using JavaFX SDK. I wanted to have a message box like in C#:

DialogResult rs = MessageBox.showDialog("Message Here...");
if (rs == ....) {
    // code
}

I want to have a functionality like this using JavaFX SDK. Answers are very much appreciated.

8 Answers

This is a very simple example : Alert alert = new Alert(AlertType.CONFIRMATION, "Are you sure you want to proceed?");

Related