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

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.