O'Reilly logo

Core Java® Volume II—Advanced Features, Ninth Edition by Gary Cornell, Cay S. Horstmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6.6.4. Cascading and Tiling

In Windows, there are standard commands for cascading and tiling windows (see Figures 6.49 and 6.50). The Java JDesktopPane and JInternalFrame classes have no built-in support for these operations. In Listing 6.31, we show you how you can implement these operations yourself.

Image

Figure 6.49. Cascaded internal frames

Image

Figure 6.50. Tiled internal frames

To cascade all windows, reshape windows to the same size and stagger their positions. The getAllFrames method of the JDesktopPane class returns an array of all internal frames. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required