diff options
author | Nino Breuer | 2014-11-20 19:05:38 +0100 |
---|---|---|
committer | Nino Breuer | 2014-11-20 19:05:38 +0100 |
commit | 32dd662857871d8479abb765b712dc4c3d73d73a (patch) | |
tree | 53f1e85201648e60965ec5e52d6cd4c349735a21 /dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java | |
parent | • changed position where the token is written new to the server handler (diff) | |
download | tutor-module-32dd662857871d8479abb765b712dc4c3d73d73a.tar.gz tutor-module-32dd662857871d8479abb765b712dc4c3d73d73a.tar.xz tutor-module-32dd662857871d8479abb765b712dc4c3d73d73a.zip |
• replaced getText() with getText().trim()
Diffstat (limited to 'dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java')
-rw-r--r-- | dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java index c435cf45..a3e4c6cf 100644 --- a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java @@ -205,7 +205,7 @@ public class FTPEditDownloader_GUI extends JFrame implements lblPath.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent arg0) { - if (lblPath.getText() == null) { + if (lblPath.getText().trim().trim() == null) { // wenn leer, dann upload button nicht freigeben btnDownloadStarten.setEnabled(false); btnDownloadStarten.setText("Bitte warten"); @@ -480,7 +480,7 @@ public class FTPEditDownloader_GUI extends JFrame implements }// end else // always save download path - File f = new File(lblPath.getText()); + File f = new File(lblPath.getText().trim().trim()); if (f.isDirectory()) { Config.setLastDownloadPath(f.toString()); } else if (f.getParentFile().isDirectory()) { @@ -534,7 +534,7 @@ public class FTPEditDownloader_GUI extends JFrame implements } task = new DownloadTask(host, port, user.userName, user.password, - downloadFile, lblPath.getText()); + downloadFile, lblPath.getText().trim().trim()); task.addPropertyChangeListener(this); task.execute(); taskrun = true; @@ -598,8 +598,8 @@ public class FTPEditDownloader_GUI extends JFrame implements public boolean isCurrentlyLoading() { isCurrentlyLoading = false; - if (lblVerbleibend.getText().equals("0 MB") - || lblVerbleibend.getText().equals("0")) { + if (lblVerbleibend.getText().trim().trim().equals("0 MB") + || lblVerbleibend.getText().trim().trim().equals("0")) { isCurrentlyLoading = false; } else { isCurrentlyLoading = true; |