Good day!
I am developing a program using JavaFX SDK. I wanted to have a message box like in C#:
DialogResult rs = MessageBox.showDialog(\"Mess
This is what I ended up using, which is part of the JavaFX UI Controls Sandbox as announced here on FX Experience :
This is a nice and easy to use dialog. Can't compare with others as this is the only one I have used. No issues with it.
The code is very concise. Looks like this :
//calling from a different controller and don't have the scene object loaded.
Stage stage = (Stage)deleteButton.getScene().getWindow();
DialogResponse response = Dialogs.showConfirmDialog(stage, "Are you sure ...", "Confirm deletion","Delete?", DialogOptions.OK_CANCEL);
if(response == DialogResponse.OK) {
//...
}