Can I add a window to a JInternalFrame...urgent...thx

Can I add a window to a JInternalFrame?

Hello,

I would like to use the JDesktopPane and JInternalFrame to implement the function...but when i use jInternalFrame.add(LoginWindow), it shows can not add a window to a container...

the login window already existed, I just need to call it...but window seems to be a top level...so what can I do?

thank you very much...

[394 byte] By [ankumosa] at [2007-11-27 3:56:23]
# 1
ok...I have mistaken the problem...the level is: JDesktopPane -> JInternalFramenow I want the login window in the JInternalFrame...and the login window is a JFrame...so the problem is: can a JFrame in JInternalFrame?thx...
ankumosa at 2007-7-12 9:00:35 > top of Java-index,Desktop,Core GUI APIs...
# 2
I think you can use JDialog for login window.
William.Anthonya at 2007-7-12 9:00:35 > top of Java-index,Desktop,Core GUI APIs...
# 3
but the login window already existed...so you mean the JDialog can be in the JInternalFrame? what about JFrame?and how to implement it?thx...
ankumosa at 2007-7-12 9:00:35 > top of Java-index,Desktop,Core GUI APIs...
# 4
read this to see how internal frames work... http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html
suparenoa at 2007-7-12 9:00:35 > top of Java-index,Desktop,Core GUI APIs...
# 5
I have read it...So it means it's impossible?It's also a good thing for me...
ankumosa at 2007-7-12 9:00:35 > top of Java-index,Desktop,Core GUI APIs...