14.9. Internal Frames

Many commercial Windows products such as Microsoft PowerPoint, Corel Draw, Borland JBuilder, and Allaire HomeSite are Multiple Document Interface (MDI) applications. This means that the program has one large “desktop” pane that holds all other windows. The other windows can be iconified (minimized) and moved around within this desktop pane, but not moved outside the pane. Furthermore, minimizing the desktop pane hides all the contained windows as well.

Swing introduced MDI support by means of two main classes. The first class, JDesktopPane, serves as a holder for the other windows. The second class, JInternalFrame, acts mostly like a JFrame, except that a JInternalFrame is constrained to stay inside the JDesktopPane. Using ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.