< prev index next >
src/java.desktop/share/classes/java/awt/MenuItem.java
Print this page
*** 408,418 ****
/*
* Returns true if the item and all its ancestors are
* enabled, false otherwise
*/
! private final boolean isItemEnabled() {
// Fix For 6185151: Menu shortcuts of all menuitems within a menu
// should be disabled when the menu itself is disabled
if (!isEnabled()) {
return false;
}
--- 408,418 ----
/*
* Returns true if the item and all its ancestors are
* enabled, false otherwise
*/
! private boolean isItemEnabled() {
// Fix For 6185151: Menu shortcuts of all menuitems within a menu
// should be disabled when the menu itself is disabled
if (!isEnabled()) {
return false;
}
< prev index next >