AccessibleStateSet () { AccessibleStateSet set = super.getAccessibleStateSet(); // Due to a bug in JMenu, CHECKED is added if the menu is enabled. That // is incorrect -- checked should be added only in the case of a "checkbox" // style menu. set.remove(AccessibleState.CHECKED); return set; }