How to check if the fxml window or a stage is open or not in JavaFx?

3k views Asked by At

I am working with several FXML files that are activated by pressing a button from the Main Frame. When you click the button more than once, more than one instance of the stage opens up, so it is taking too much memory (RAM) and the program becomes too slow.

Is it there any way to check if the needed stage is already launched, so jump to the opening window or give a warning message and not opening the same stage again in javafx ?

0

There are 0 answers