diff options
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java | 8 |
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(); |
