O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

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

Lightweight Components and Zorder

Zorder for lightweight components is determined in the same manner as zorder for heavyweight components.[4] Zorder is determined by the order in which lightweight components are added to their container. If more than one lightweight component is added to a container, the one that is added to the container first is displayed in front of all the other lightweights.

[4] For details, see “Components and Zorder”.

Figure 19-3 shows an applet containing three lightweight components and a single heavyweight component—a button. The zorder of the lightweights is determined by the order in which they are added to the applet. For example, the filmstrip lightweight is displayed in front of the frog lightweight because it is ...

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