Class DirChooser

java.lang.Object
java.util.Observable
com.nilhcem.fakesmtp.gui.DirChooser
All Implemented Interfaces:
Observer

public final class DirChooser extends Observable implements Observer
Provides a graphical directory chooser dialog.

The directory chooser is used to select the folder where emails will be saved in.
It can be launched from the menu bar, or from the main panel.

Since:
1.0
Author:
Nilhcem
  • Constructor Details

    • DirChooser

      public DirChooser(Component parent)
      Creates a JFileChooser component and sets it to be for directories only.
      Parameters:
      parent - the component from where the chooser will be launched (should be the main panel of the application).
  • Method Details

    • update

      public void update(Observable o, Object arg)
      Opens the folder selection.

      This method will be called by an Observable element:

      Specified by:
      update in interface Observer
      Parameters:
      o - the observable element which will notify this class.
      arg - optional parameters (not used).