Cover Page by Gary Cornell, Cay S. Horstmann

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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. ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required