using modality in a popup window javafx

oldvipera picture oldvipera · Jan 7, 2014 · Viewed 7.9k times · Source

I kept a popup dialog on a pane and it came at the top of the other components. Now I want to disable accessing all the other components of the program. How to do it?

Answer

Aspirant picture Aspirant · Jan 7, 2014

The popup API does not have an initModality(Modality.APPLICATION_MODAL); method which is exactly what you want. In this case, you can make your popup window a stage and use the method mentioned above.