@Override public void windowClosing(WindowEvent e) { cancel(); } });
/** * Handle the player pressing the action buttons. <p/> Implements the * <code>ActionListener</code> interface. * * @param event - the <code>ActionEvent</code> that initiated this call. */ public void actionPerformed(ActionEvent event) { String command = event.getActionCommand(); if (CommonSettingsDialog.UPDATE.equalsIgnoreCase(command)) { update(); } else if (CommonSettingsDialog.CANCEL.equalsIgnoreCase(command)) { cancel(); } }