posted 8 years ago
Hello guys , im having an issue : when i click a menuItem it shows a window who says that "are you sure you want to logout" , and i click no (so that window is closed), but when i click again i that menuItem it shows me java.lang.IllegalStateException: Cannot set modality once stage has been set visible.
What should I do ?
Here's the code:
MainWindowController.java
Here's the method to close that window if user click "NO" i dont want to logout
OUTPUT:
MainWindowController.java.43 line is this one: