Package com.nilhcem.fakesmtp.gui
Class DirChooser
java.lang.Object
java.util.Observable
com.nilhcem.fakesmtp.gui.DirChooser
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionDirChooser
(Component parent) Creates aJFileChooser
component and sets it to be for directories only. -
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(Observable o, Object arg) Opens the folder selection.Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
DirChooser
Creates aJFileChooser
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
Opens the folder selection.This method will be called by an
Observable
element:- The
MenuBar
; - Or the
SaveMsgField
.
- The
-