diff options
Diffstat (limited to 'Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java')
| -rw-r--r-- | Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java b/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java index 8f7bb8ce..c68ccff2 100644 --- a/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java +++ b/Dozentenmodul/src/gui/image/FTPEditDownloader_GUI.java @@ -83,6 +83,7 @@ public class FTPEditDownloader_GUI extends JFrame implements JButton btnZurck = new JButton("Zur\u00FCck"); JButton btnDownloadStarten = new JButton("Download starten"); private JLabel lblAnleitung; + private boolean isCurrentlyLoading = false; // currently up or downloading file /** * Create the frame. @@ -113,9 +114,6 @@ public class FTPEditDownloader_GUI extends JFrame implements } catch (TException e1) { // TODO Auto-generated catch block e1.printStackTrace(); - JOptionPane.showMessageDialog(null, e1.getCause() - + "\n" + e1.getStackTrace(), - "Debug-Message", JOptionPane.ERROR_MESSAGE); } task.cancel(true); System.exit(0); @@ -561,5 +559,17 @@ public class FTPEditDownloader_GUI extends JFrame implements } - } -}
\ No newline at end of file + }//end PropertyChange() + + public boolean isCurrentlyLoading() { + isCurrentlyLoading = false; + + if (labelVerbleibend.getText().equals("0")) { + isCurrentlyLoading = false; + } else { + isCurrentlyLoading = true; + } + System.out.println("isCurrentlyLoading"+isCurrentlyLoading); + return isCurrentlyLoading; + }// end isCurrentlyLoading() +}// end class
\ No newline at end of file |
