simple JInternalFrame question.

Pro's,

Would there be any reason why a JInternalFrame would not show up when accessed through a mouse click on a menu. I can bring it up perfectly when running it as a stand alone JFrame. It is not showing up when I change it to a JInternalFrame. I know and understand that the problem is while changing it from a JFrame to a JInternalFrame but I want to pin point it..:( and know what I need to make the JInternalFrame work the same as a JFrame. I searched the archives and 'googled' about the problem but could not find anything. Any suggestions/input will be very helpful. TIA.

Misty.

[609 byte] By [myswinga] at [2007-11-27 0:36:39]
# 1
JFrames are displayed on a desktop.JInternalFrames are added to JDesktopPane. The desktop pane is added to your JFrame. They cannot exist as a stand alone component on a desktop.
camickra at 2007-7-11 22:46:11 > top of Java-index,Desktop,Core GUI APIs...
# 2

Thanks a lot for your response camickr

>>JFrames are displayed on a desktop.

Yes, makes sense.

>>JInternalFrames are added to JDesktopPane

Already did that.

>>The desktop pane is added to your JFrame

Yes.

I am still not able to display my JInternalFrame...Just does not make sense. Will keep trying away.

Thanks again for the input.

Misty.

myswinga at 2007-7-11 22:46:11 > top of Java-index,Desktop,Core GUI APIs...
# 3
Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html]How to Use Internal Frames[/url] for a working example.
camickra at 2007-7-11 22:46:11 > top of Java-index,Desktop,Core GUI APIs...
# 4
Have you tried setSize(new Dimension(300,300)); ?I've had this problem in the past...hope it helps !
aleixmra at 2007-7-11 22:46:11 > top of Java-index,Desktop,Core GUI APIs...