This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Difference among JFrame, JInternalFrame, InnerFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Difference among JFrame, JInternalFrame, InnerFrame" Watch "Difference among JFrame, JInternalFrame, InnerFrame" New topic

Difference among JFrame, JInternalFrame, InnerFrame

Elizabeth King
Ranch Hand

Joined: Jul 11, 2002
Posts: 191
Can anyone tell me the difference among JFrame,
JInternalFrame, InnerFrame?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

JFrame is the basic top-level "frame" component used by Swing applications. JInternalFrame is used by Swing applications to show "frames" inside a JDesktopPane. This is used for Multiple Document Interface applications. (Like MS Word, each document is inside a separate frame in an application. If this was written in Java, each document would have it's own JInternalFrame.)

InnerFrame is not a class in the standard Java APIs... the only reference I can find to an InnerFrame is in the XWT, a toolkit that lets you build application interfaces from XML, in which case I don't think you would be using this class directly...
[ October 01, 2002: Message edited by: Nathan Pruett ]

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Don't get me started about those stupid light bulbs.
subject: Difference among JFrame, JInternalFrame, InnerFrame
Similar Threads
How can i hide a JFrame from showing a window in the taskbar?
Difference between JInternalFrame and JFrame
Pressing a button to open a new window
JInternal Frames under JMenu
non iconifiable JFrame