22.7 JDesktopPane and JInternalFrame

A multiple-document interface (MDI) is a main window (called the parent window) containing other windows (called child windows) and is often used to manage several open documents. For example, many e-mail programs allow you to have several windows open at the same time, so you can compose or read multiple e-mail messages simultaneously. Similarly, many word processors allow the user to open multiple documents in separate windows within a main window, making it possible to switch between them without having to close one to open another. The application in Figs. 22.1122.12 demonstrates Swing’s JDesktopPane and JInternalFrame classes for implementing multiple-document interfaces.

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.