Java Q: Difference between JFrame and JInternalFrame ?

boran

Golden Member
Jun 17, 2001
1,526
0
76
I'm using together as a build tool and I have to choose between JFrame and JInternalFrame for my GUI components, but what is the difference between these two ?.

thanks in advance.
 

Kilrsat

Golden Member
Jul 16, 2001
1,072
0
0
A JFrame stands on its own as an independent window.

A JInternalFrame is added to a JDesktopPane to allow you to have multiple internal windows inside one external frame.

For example:
http://www.kilcli.com/images/winwiz.jpg

The container there is a JFrame. All the floating objects in the middle are JInternalFrames.

 

boran

Golden Member
Jun 17, 2001
1,526
0
76
thanks, strangely my design tool doesnt let me make a JDesktopPane, ah, by hand it is then ...