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

Chapter 17. Menus

The original release of the AWT supported only one type of menu: ones that reside in a menubar. Furthermore, AWT menus were not components, so it was not possible to draw into a menu (or menu item). As a result, menus could only contain textual information.

The current version of the AWT provides a PopupMenu class; however, menus are still not extensions of java.awt.Component, so it is still not possible to implement owner-drawn menus, which are a common feature under many windowing systems[1]. The current release of the AWT also provides ...

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