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

Summary

The AWT provides three basic components that create a top-level window: Window, Frame, and Dialog.

Windows are the superclass of both frames and dialogs and are also the only component of the three that can be displayed without a border or titlebar. As a result, windows are used when a basic, borderless rectangular region is required, as is the case for either a splash screen or bubble help.

Frames are the component of choice when more than one application window is needed. Frames are the only AWT component that can be iconified or have a menubar attached—both of which are characteristics of a top-level application window.

Finally, dialogs are the only component that can be modal. Modal dialogs not only block input to other windows in ...

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