I have a problem with my application where the user will open more than one window at a time. And i have added dispose() method to call on closing the window. Now i should k
simply check if the other window is open before closing with window.isVisible();