February 2014
Beginner
1248 pages
62h 25m
English
Applications often provide context-sensitive pop-up menus for several reasons—they can be convenient, there might not be a menu bar and the options they display can be specific to individual on-screen components. In Swing, such menus are created with class JPopupMenu (a subclass of JComponent). These menus provide options that are specific to the component for which the popup trigger event occurred—on most systems, when the user presses and releases the right mouse button.
Look-and-Feel Observation 22.8
The pop-up trigger event is platform specific. On most platforms that use a mouse with multiple buttons, the pop-up trigger ...
Read now
Unlock full access