JDesktopPane and add a JInternalFrame problem!

Hi,

I'm using a JdesktopPane and I add to it some windows. I also mantaine a reference to some windows, but when I close the window and ask to review it, with the following code:

...

if(this.myWindow!=null)

{

this.myWindow.setVisible(true);

}

nothing appens. I've already added the window to the desktop with the add method, the window reference is not null but I can't see the window again.

How to do it?

Thanks

[476 byte] By [fluca1978] at [2007-9-27 21:43:24]
# 1
Hi,have you tried myWindow.toFront() ?
flefevre02 at 2007-7-7 3:42:02 > top of Java-index,Archived Forums,Swing...
# 2
when a JInternalFrame is closed, it is removed from the JDesktopPane,you need to add it again before calling setVisible () or show()
talkov at 2007-7-7 3:42:02 > top of Java-index,Archived Forums,Swing...