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

Help Menus

The AWT provides support for a help menu. A help menu is created and added to a menubar just like any other menu. Help menus, however, need to be identified by invocation of invoking MenuBar.setHelpMenu(), which ensures that the help menu is the rightmost menu in the menubar, regardless of when it was added to the menubar.

Help menus under Motif are right-justified in the menubar itself, whereas while help menus under Windows 95 are simply placed to the right of the other menus in the menubar, as illustrated in Figure 17-4.

Figure 17-4. Motif and Windows 95 Help Menus. Motif help menus are right-justified in the menubar itself, as in the top picture. Windows 95 help menus are placed to the right of the other menus, as in the bottom ...

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