summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
diff options
context:
space:
mode:
authorJonathan Bauer2014-09-18 13:44:08 +0200
committerJonathan Bauer2014-09-18 13:44:08 +0200
commitb819dffd8a2e46c900f50c9f873c0603a83e8c79 (patch)
tree59cfcc46dcd54935a637fa77ebf0d5a7f5acab81 /dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
parentRevert "[client] center GUIs in the primary display only" (diff)
downloadtutor-module-b819dffd8a2e46c900f50c9f873c0603a83e8c79.tar.gz
tutor-module-b819dffd8a2e46c900f50c9f873c0603a83e8c79.tar.xz
tutor-module-b819dffd8a2e46c900f50c9f873c0603a83e8c79.zip
[client] moved main function to App.java & refined Config stuff
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java')
-rw-r--r--dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java b/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
index db80bc35..34e0cf80 100644
--- a/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
+++ b/dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java
@@ -155,7 +155,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
"Speicherort auswählen");
btnSpeicherortAuswhlen.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
- fc = new JFileChooser(Config.getString("main", "Letzter Downloadpfad", System.getProperty("user.home")));
+ fc = new JFileChooser(Config.getLastDownloadPath());
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
fc.showOpenDialog(getParent());
@@ -180,7 +180,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
// read last download path from config
lblPath = new JLabel("");
- lblPath.setText(Config.getString("main", "Letzter Downloadpfad", System.getProperty("user.home")));
+ lblPath.setText(Config.getLastDownloadPath());
lblPath.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent arg0) {
@@ -445,7 +445,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
dispose();
}// end else
// save config in any case
- Config.setString("main", "Letzter Downloadpfad", lblPath.getText());
+ Config.setLastDownloadPath(lblPath.getText());
Config.store();
}//end action
});
@@ -455,7 +455,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements
btnMainMenu.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
- Config.setString("main", "Letzter Downloadpfad", lblPath.getText());
+ Config.setLastDownloadPath(lblPath.getText());
Config.store();
MainMenue_GUI mm = new MainMenue_GUI();