Java Reference
In-Depth Information
Next, you learned about the JSeparator component and how you can use it as a menu
separator or as a visual display separator outside of menus.
You then explored the JPopupMenu , which JMenu uses to display its set of JMenuItem compo-
nents. For the JPopupMenu , you learned about the pop-up menu's own event/listener pair,
PopupMenuEvent / PopupMenuListener .
Then the selectable menu elements in JCheckBoxMenuItem and JRadioButtonMenuItem were
explored with their MenuElement interface, and you saw how to create a custom menu component.
Menus aren't the only things that might pop up, so you explored Popup and PopupFactory .
Finally, the chapter covered the JToolBar class, a close cousin of Swing's menu classes.
In Chapter 7, you'll look at the different classes Swing provides for customizing the border
around a Swing component.
Search WWH ::




Custom Search