From 2e86d9eecb15febde2fc5b4bc973b62a35c39b07 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Tue, 26 Aug 2014 07:48:40 +0200 Subject: download prüft jetzt auf label.text == null --- Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java | 2 +- Dozentenmodul/src/gui/image/FTPSearchDownloader_GUI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java b/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java index aae76861..18df360e 100644 --- a/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java +++ b/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java @@ -207,7 +207,7 @@ public class FTPEditDownloader_GUI extends JFrame implements } lblPath.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent arg0) { - if (lblPath.getText().isEmpty()) { + if (lblPath.getText() == null) { // wenn leer, dann upload button nicht freigeben btnDownloadStarten.setEnabled(false); btnDownloadStarten.setText("Bitte warten"); diff --git a/Dozentenmodul/src/gui/image/FTPSearchDownloader_GUI.java b/Dozentenmodul/src/gui/image/FTPSearchDownloader_GUI.java index ad178085..e75fa8b9 100644 --- a/Dozentenmodul/src/gui/image/FTPSearchDownloader_GUI.java +++ b/Dozentenmodul/src/gui/image/FTPSearchDownloader_GUI.java @@ -205,7 +205,7 @@ public class FTPSearchDownloader_GUI extends JFrame implements } lblPath.addPropertyChangeListener(new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent arg0) { - if (lblPath.getText().isEmpty()) { + if (lblPath.getText() == null) { // wenn leer, dann upload button nicht freigeben btnDownloadStarten.setEnabled(false); btnDownloadStarten.setText("Bitte warten"); -- cgit v1.2.3-55-g7522