public void actionPerformed(ActionEvent evt) {
if (listeners != null) {
Object[] listenerList = listeners.getListenerList();
// Recreate the ActionEvent and stuff the value of the
// ACTION_COMMAND_KEY
ActionEvent e = new ActionEvent(evt.getSource(), evt.getID(),
(String) getValue(Action.ACTION_COMMAND_KEY));
for (int i = 0; i <= (listenerList.length - 2); i += 2) {
((ActionListener) listenerList[i + 1]).actionPerformed(e);
}
}