/** * Enables and disables this button and if an action is assigned to this * menuitem the propertychange is forwarded to the assigned action. * * @param b the new enable-state of this menuitem */ public void setEnabled(final boolean b) { super.setEnabled(b); if (getAction() != null) { getAction().setEnabled(b); } }
/** * Enables and disables this button and if an action is assigned to this * menuitem the propertychange is forwarded to the assigned action. * * @param b the new enable-state of this menuitem */ public void setEnabled(final boolean b) { super.setEnabled(b); if (getAction() != null) { getAction().setEnabled(b); } }
/** * Enables and disables this button and if an action is assigned to this * menuitem the propertychange is forwarded to the assigned action. * * @param b the new enable-state of this menuitem */ public void setEnabled(final boolean b) { super.setEnabled(b); if (getAction() != null) { getAction().setEnabled(b); } }
final Action oldAction = getAction(); if (oldAction != null)
final Action oldAction = getAction(); if (oldAction != null)
final Action oldAction = getAction(); if (oldAction != null)