public final class DirChooser extends Observable implements Observer
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.
| Constructor and Description |
|---|
DirChooser(Component parent)
Creates a
JFileChooser component and sets it to be for directories only. |
| Modifier and Type | Method and Description |
|---|---|
void |
update(Observable o,
Object arg)
Opens the folder selection.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic DirChooser(Component parent)
JFileChooser component and sets it to be for directories only.parent - the component from where the chooser will be launched (should be the main panel of the application).public void update(Observable o, Object arg)
This method will be called by an Observable element:
MenuBar;SaveMsgField.Copyright © 2015. All rights reserved.