From 5f9def7c33845efcff91ec1edf7caae71fc4ed75 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Mon, 25 Aug 2014 17:50:08 +0200 Subject: Verhindere unerlaubtes zurückgehen auf vorige Seite während Up-DOwnloads --- Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java') diff --git a/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java b/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java index de1f6ffe..f54bea82 100644 --- a/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java +++ b/Dozentenmodul/src/gui/image/FTPEditUploader_GUI.java @@ -84,6 +84,7 @@ public class FTPEditUploader_GUI extends JFrame implements JButton btnSpeicherortAuswhlen = new JButton("Image ausw\u00E4hlen"); JButton finishButton = new JButton("Fertigstellen"); JButton btnZurck = new JButton("Zur\u00FCck"); + private boolean isCurrentlyLoading = false; // currently up or downloading file /** * Create the frame. @@ -351,6 +352,8 @@ public class FTPEditUploader_GUI extends JFrame implements }); btnZurck.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { + + // dispose(); PermissionEditImage_GUI ei = new PermissionEditImage_GUI(); ei.setVisible(true); @@ -561,4 +564,16 @@ public class FTPEditUploader_GUI extends JFrame implements return true; } + + public boolean isCurrentlyLoading() { + isCurrentlyLoading = false; + + if (labelverbleibend.getText().equals("0")) { + isCurrentlyLoading = false; + } else { + isCurrentlyLoading = true; + } + System.out.println("isCurrentlyLoading"+isCurrentlyLoading); + return isCurrentlyLoading; + }// end isCurrentlyLoading() } \ No newline at end of file -- cgit v1.2.3-55-g7522