diff options
| author | Tobias Spitzer | 2014-08-25 14:53:14 +0200 |
|---|---|---|
| committer | Tobias Spitzer | 2014-08-25 14:53:14 +0200 |
| commit | 4717a283f45eb8433767d0d0ca71cfdda7fccf61 (patch) | |
| tree | 8e4a8315f0fa3a56cf6df7f97e7ef39e3ce0dbdb /Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java | |
| parent | Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff) | |
| download | tutor-module-4717a283f45eb8433767d0d0ca71cfdda7fccf61.tar.gz tutor-module-4717a283f45eb8433767d0d0ca71cfdda7fccf61.tar.xz tutor-module-4717a283f45eb8433767d0d0ca71cfdda7fccf61.zip | |
Letzter Down- und Uploadpfad werden nun in die Konfig geschrieben
Diffstat (limited to 'Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java')
| -rw-r--r-- | Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java b/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java index 2bea341d..d8ac09c2 100644 --- a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java +++ b/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java @@ -76,6 +76,7 @@ public class FTPCreateUploader_GUI extends JFrame implements JLabel labelfilesize; JLabel labelZeit; JLabel labelverbleibend; + JFileChooser fc; long filesize; double speed; long bytesread; @@ -161,7 +162,21 @@ public class FTPCreateUploader_GUI extends JFrame implements JButton btnSpeicherortAuswhlen = new JButton("Image ausw\u00E4hlen"); btnSpeicherortAuswhlen.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { - JFileChooser fc = new JFileChooser(); + try { + Wini ini = new Wini( + new File( + "C:\\Users\\" + + System.getProperty("user.name") + + "\\AppData\\Roaming\\bwLehrpoolSuite\\config.ini")); + fc = new JFileChooser(ini.get("main", "Letzter Uploadpfad",String.class)); + } catch (InvalidFileFormatException e2) { + // TODO Auto-generated catch block + e2.printStackTrace(); + } catch (IOException e2) { + // TODO Auto-generated catch block + e2.printStackTrace(); + } + fc.setFileSelectionMode(JFileChooser.FILES_ONLY); fc.showOpenDialog(getParent()); |
