/** * Enables and disables this button and if an action is assigned to this button the * propertychange is forwarded to the assigned action. * * @param b the new enable-state of this button */ 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 button the * propertychange is forwarded to the assigned action. * * @param b the new enable-state of this button */ 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 button the * propertychange is forwarded to the assigned action. * * @param b the new enable-state of this button */ public void setEnabled(final boolean b) { super.setEnabled(b); if (getAction() != null) { getAction().setEnabled(b); } }
try { if (event.getPropertyName().equals("enabled")) { setEnabled(getAction().isEnabled()); setIcon((Icon) getAction().getValue(Action.SMALL_ICON)); setText((String) getAction().getValue (Action.NAME)); getAction().getValue(Action.SHORT_DESCRIPTION)); final Action ac = getAction(); if (event.getPropertyName().equals(ActionDowngrade.ACCELERATOR_KEY)) { final KeyStroke oldVal = (KeyStroke) event.getOldValue();
try { if (event.getPropertyName().equals("enabled")) { setEnabled(getAction().isEnabled()); setIcon((Icon) getAction().getValue(Action.SMALL_ICON)); setText((String) getAction().getValue (Action.NAME)); getAction().getValue(Action.SHORT_DESCRIPTION)); final Action ac = getAction(); if (event.getPropertyName().equals(ActionDowngrade.ACCELERATOR_KEY)) { final KeyStroke oldVal = (KeyStroke) event.getOldValue();
try { if (event.getPropertyName().equals("enabled")) { setEnabled(getAction().isEnabled()); setIcon((Icon) getAction().getValue(Action.SMALL_ICON)); setText((String) getAction().getValue (Action.NAME)); getAction().getValue(Action.SHORT_DESCRIPTION)); final Action ac = getAction(); if (event.getPropertyName().equals(ActionDowngrade.ACCELERATOR_KEY)) { final KeyStroke oldVal = (KeyStroke) event.getOldValue();
final Action oldAction = getAction(); if (oldAction != null) { removeActionListener(oldAction);
final Action oldAction = getAction(); if (oldAction != null) { removeActionListener(oldAction);
final Action oldAction = getAction(); if (oldAction != null) { removeActionListener(oldAction);