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

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.