sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

JFXDialog: modality #1112

Closed davidvarga closed 4 years ago

davidvarga commented 4 years ago

Hi!

The imlementation of JFXDialog is graphically beutifull, but there is a fatal flow: the dialog is not modal, which is against the material design description for a dialog.

In the current implementation, the overlay must be placed on the root of the parent window, which is providing modality for that window, but desktop applications usually multi-staged (4-5 windows parallel usually in my case).

It would be nice to have a showAndWait method for JFXDialog which would open it in a modal manner.

Thanks!

davidvarga commented 4 years ago

Ahm, okay - JFXAlert is doing this. Sorry - I close the issue :)