From b819dffd8a2e46c900f50c9f873c0603a83e8c79 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 18 Sep 2014 13:44:08 +0200 Subject: [client] moved main function to App.java & refined Config stuff --- .../src/main/java/gui/image/FTPSearchDownloader_GUI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dozentenmodul/src/main/java/gui/image/FTPSearchDownloader_GUI.java') 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(); -- cgit v1.2.3-55-g7522