APPENDIX L MORE ON GUI BUILDERS

Chapter 20 introduced basic Swing components using the SwingBuilder markup generator. Here, we consider applications that include other components, such as menus, menu items, toolbars, and dialogs, that we might expect to find in a typical graphical application.

L.1 MENUS AND TOOLBARS

A graphical application often includes a menu that provides the user with access to the functions of the program. A menu bar is used to carry a number of menus. In turn, each menu is a drop-down for a number of menu items that represent the services of the application. They are easy to construct with SwingBuilder using menuBars, menus, and menuItems. The hierarchy is, as we might expect, with the menuBar enclosing the menus and ...

Get Groovy Programming 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.