/** * Handles clicks on the standard buttons. * * @param event the event. */ public void actionPerformed(final ActionEvent event) { final String command = event.getActionCommand(); if (command.equals("helpButton")) { // display help information } else if (command.equals("okButton")) { this.cancelled = false; setVisible(false); } else if (command.equals("cancelButton")) { this.cancelled = true; setVisible(false); } }
/** * Handles clicks on the standard buttons. * * @param event the event. */ public void actionPerformed(final ActionEvent event) { final String command = event.getActionCommand(); if (command.equals("helpButton")) { // display help information } else if (command.equals("okButton")) { this.cancelled = false; setVisible(false); } else if (command.equals("cancelButton")) { this.cancelled = true; setVisible(false); } }
/** * Handles clicks on the standard buttons. * * @param event the event. */ public void actionPerformed(final ActionEvent event) { final String command = event.getActionCommand(); if (command.equals("helpButton")) { // display help information } else if (command.equals("okButton")) { this.cancelled = false; setVisible(false); } else if (command.equals("cancelButton")) { this.cancelled = true; setVisible(false); } }