public void actionPerformed(ActionEvent e) { if (e.getActionCommand().compareTo("Beenden") == 0) { System.exit(0); }}