Class PreferencesDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants

public class PreferencesDialog extends JDialog implements ActionListener, ChangeListener
Dialog box for managing Cockpit Preferences.
Author:
James Murty
See Also:
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Event handler for this dialog.
      Specified by:
      actionPerformed in interface ActionListener
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • showDialog

      public static void showDialog(CockpitPreferences cockpitPreferences, Frame owner, HyperlinkActivatedListener hyperlinkListener)
      Displays the Preferences dialog box and waits until the user selects to cancel the dialog or to save the properties.
      Parameters:
      cockpitPreferences - an object with the current cockpit preferences, which will be updated to reflect any changes the user makes to their preferences.
      owner - the frame that will own this dialog.
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.