public void actionPerformed(ActionEvent actionEvent) { setVisible(false); } });
public void actionPerformed(ActionEvent actionEvent) { setVisible(false); } });
/** * Displays the Preferences dialog box and waits until the user selects to cancel the dialog or * to save the properties. * * @param cockpitPreferences * an object with the current cockpit preferences, which will be updated to reflect any changes * the user makes to their preferences. * @param owner * the frame that will own this dialog. * @param hyperlinkListener * the listener that will act on any hyperlink events triggered by the user clicking on HTTP links. */ public static void showDialog(CockpitPreferences cockpitPreferences, Frame owner, HyperlinkActivatedListener hyperlinkListener) { if (preferencesDialog == null) { preferencesDialog = new PreferencesDialog(cockpitPreferences, owner, hyperlinkListener); } preferencesDialog.setVisible(true); }
/** * Displays the Preferences dialog box and waits until the user selects to cancel the dialog or * to save the properties. * * @param cockpitPreferences * an object with the current cockpit preferences, which will be updated to reflect any changes * the user makes to their preferences. * @param owner * the frame that will own this dialog. * @param hyperlinkListener * the listener that will act on any hyperlink events triggered by the user clicking on HTTP links. */ public static void showDialog(CockpitPreferences cockpitPreferences, Frame owner, HyperlinkActivatedListener hyperlinkListener) { if (preferencesDialog == null) { preferencesDialog = new PreferencesDialog(cockpitPreferences, owner, hyperlinkListener); } preferencesDialog.setVisible(true); }
(String) encryptAlgorithmComboBox.getSelectedItem()); this.setVisible(false); } else if (e.getSource().equals(cancelButton)) { this.setVisible(false);
(String) encryptAlgorithmComboBox.getSelectedItem()); this.setVisible(false); } else if (e.getSource().equals(cancelButton)) { this.setVisible(false);