06-EMMA-GUI 8 makeActions private Action exitAction; private void makeActions (Container parent, boolean createExitButton) { if (createExitButton) { exitAction = new AbstractAction ( exit , EMMA301Utils.getImageIcon(parent, pictures/exit.gif )) { { putValue(Action.SHORT_DESCRIPTION, Beendet das Programm ); putValue(Action.MNEMONIC_KEY, new Integer( x )); } public void actionPerformed(ActionEvent e) { System.exit(0); } }; } }
{}