Class IconActionableMenuItem

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants

public class IconActionableMenuItem extends JMenuItem
A JMenuItem whose icon reacts to clicks independently of the item's main action. Useful for entries that need a secondary action (e.g., a "reveal" or "info" shortcut) triggered only when the icon itself is clicked, leaving the rest of the item free to fire the default action. While hovered, the icon gets a hand cursor and a subtle highlight so it reads as its own clickable control.
Author:
Tiago Ferreira
See Also:
  • Constructor Details

    • IconActionableMenuItem

      public IconActionableMenuItem(String text, Icon icon)
  • Method Details