Maneesh Godbole wrote:Most probably you have one instance reference to the JWindow and everytime a new window is created you are doing something like myJWindow=new JWindow(); Then later on somewhere you are calling myJWindow#setVisible(false) resulting in only the latest one being closed. Of course I am just shooting in the dark here. Like Rob said, you need to tell us more.
I use JWindow to display images. Please see below that is how I open a JWindow. Each time I click on a small image, it
will open an JWindow to enlarge the small image. If I keep click on images without closing (dispose()) the current JWindow,
the program will open more than one JWindow. If I have multiple JWindow are opened, I can only close the latest one I open.
How to close( dispose()) all of JWindow ???
JWindow window = new JWindow() to open a new JWindow.
dispose() to close JWindow.