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
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.
I agree. Here's the link:
subject: Difference among JFrame, JInternalFrame, InnerFrame
It's not a secret anymore!