Now, I have a JMenu, and some JMenuItems in it. I want my program to perform some action when JMenu\'s and JMenuItem\'s state is changed to \"selected\". I don\'t use MouseL
This is the expected polymorphic behavior. The isSelected() method of JMenuItem is inherited from AbstractButton, while the same method in Jmenu is overridden so that it "Returns true if the menu is currently selected (highlighted)."