diff options
| author | Michael Wilson | 2014-08-25 17:50:38 +0200 |
|---|---|---|
| committer | Michael Wilson | 2014-08-25 17:50:38 +0200 |
| commit | 7c08e2fb5958666edabdd46ea5665be04577fe6d (patch) | |
| tree | 365e0b859d640dd69c0ea72d9ea31bacadea45da /Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java | |
| parent | Verhindere unerlaubtes zurückgehen auf vorige Seite während Up-DOwnloads (diff) | |
| parent | Letzter Down- und Uploadpfad werden nun in die Konfig geschrieben (diff) | |
| download | tutor-module-7c08e2fb5958666edabdd46ea5665be04577fe6d.tar.gz tutor-module-7c08e2fb5958666edabdd46ea5665be04577fe6d.tar.xz tutor-module-7c08e2fb5958666edabdd46ea5665be04577fe6d.zip | |
Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module
Conflicts:
Dozentenmodul/bin/ftp/DownloadTask.class
Dozentenmodul/bin/ftp/UploadTask.class
Dozentenmodul/bin/gui/image/FTPCreateUploader_GUI.class
Dozentenmodul/bin/gui/image/FTPEditUploader_GUI.class
Dozentenmodul/bin/gui/image/SearchEditImage_GUI.class
Diffstat (limited to 'Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java')
| -rw-r--r-- | Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java b/Dozentenmodul/src/gui/image/FTPCreateUploader_GUI.java index 291bc065..fe0e6d72 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; @@ -159,7 +160,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()); @@ -653,4 +668,4 @@ public class FTPCreateUploader_GUI extends JFrame implements return isCurrentlyLoading; }// end isCurrentlyLoading() -}// end class
\ No newline at end of file +}// end class |
