summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/GUI
diff options
context:
space:
mode:
authorunknown2013-12-06 11:24:49 +0100
committerunknown2013-12-06 11:24:49 +0100
commitb5d94da9e8b28a828afce600ba40c673c977b1b5 (patch)
treeda2fb962c5d235a74f63bcb52ac4f0d2feadee2c /Dozentenmodul/src/GUI
parentUpload mit dynamischen User, welcher nach dem Upload wieder gelöscht wird (diff)
downloadtutor-module-b5d94da9e8b28a828afce600ba40c673c977b1b5.tar.gz
tutor-module-b5d94da9e8b28a828afce600ba40c673c977b1b5.tar.xz
tutor-module-b5d94da9e8b28a828afce600ba40c673c977b1b5.zip
Aktionsauswahl neu
Diffstat (limited to 'Dozentenmodul/src/GUI')
-rw-r--r--Dozentenmodul/src/GUI/ActionChooser.java62
-rw-r--r--Dozentenmodul/src/GUI/FTPUploader.java14
2 files changed, 32 insertions, 44 deletions
diff --git a/Dozentenmodul/src/GUI/ActionChooser.java b/Dozentenmodul/src/GUI/ActionChooser.java
index 631686bd..f469878d 100644
--- a/Dozentenmodul/src/GUI/ActionChooser.java
+++ b/Dozentenmodul/src/GUI/ActionChooser.java
@@ -32,8 +32,8 @@ public class ActionChooser extends JFrame {
private final JPanel contentPanel = new JPanel();
String[] result;
- JRadioButton radioButton_1;
- JRadioButton radioButton;
+ JRadioButton rdbtnLaborvorlageHerunterladen;
+ JRadioButton rdbtnVerfgbaresLaborHerunterladen;
private final ButtonGroup buttonGroup = new ButtonGroup();
/**
* Launch the application.
@@ -97,43 +97,43 @@ public class ActionChooser extends JFrame {
getContentPane().add(contentPanel);
contentPanel.setLayout(null);
- radioButton = new JRadioButton("Erstellen einer neuen VL");
- radioButton.setEnabled(false);
- buttonGroup.add(radioButton);
- radioButton.setHorizontalAlignment(SwingConstants.CENTER);
- radioButton.setBackground(Color.WHITE);
- radioButton.setBounds(6, 30, 141, 23);
- contentPanel.add(radioButton);
+ rdbtnVerfgbaresLaborHerunterladen = new JRadioButton("Verf\u00FCgbares Labor herunterladen");
+ rdbtnVerfgbaresLaborHerunterladen.setEnabled(false);
+ buttonGroup.add(rdbtnVerfgbaresLaborHerunterladen);
+ rdbtnVerfgbaresLaborHerunterladen.setHorizontalAlignment(SwingConstants.CENTER);
+ rdbtnVerfgbaresLaborHerunterladen.setBackground(Color.WHITE);
+ rdbtnVerfgbaresLaborHerunterladen.setBounds(6, 30, 185, 23);
+ contentPanel.add(rdbtnVerfgbaresLaborHerunterladen);
- radioButton_1 = new JRadioButton("Erstellen einer neuen VL auf Basis einer VL Rohling");
- radioButton_1.setSelected(true);
- buttonGroup.add(radioButton_1);
- radioButton_1.setBackground(Color.WHITE);
- radioButton_1.setBounds(6, 7, 265, 23);
- contentPanel.add(radioButton_1);
+ rdbtnLaborvorlageHerunterladen = new JRadioButton("Laborvorlage herunterladen");
+ rdbtnLaborvorlageHerunterladen.setSelected(true);
+ buttonGroup.add(rdbtnLaborvorlageHerunterladen);
+ rdbtnLaborvorlageHerunterladen.setBackground(Color.WHITE);
+ rdbtnLaborvorlageHerunterladen.setBounds(6, 7, 265, 23);
+ contentPanel.add(rdbtnLaborvorlageHerunterladen);
- JRadioButton rdbtnEigenschaftenEinerVl = new JRadioButton("Eigenschaften einer VL \u00E4ndern");
+ JRadioButton rdbtnEigenschaftenEinerVl = new JRadioButton("Fertiges Labor hochladen");
rdbtnEigenschaftenEinerVl.setEnabled(false);
buttonGroup.add(rdbtnEigenschaftenEinerVl);
rdbtnEigenschaftenEinerVl.setBackground(Color.WHITE);
rdbtnEigenschaftenEinerVl.setBounds(6, 53, 185, 23);
contentPanel.add(rdbtnEigenschaftenEinerVl);
- JRadioButton radioButton_3 = new JRadioButton("Kopieren einer bestehenden VL");
- radioButton_3.setEnabled(false);
- buttonGroup.add(radioButton_3);
- radioButton_3.setBackground(Color.WHITE);
- radioButton_3.setBounds(6, 105, 175, 23);
- contentPanel.add(radioButton_3);
+ JRadioButton rdbtnLinkAufEin = new JRadioButton("Link auf ein bestehendes Labor erzeugen");
+ rdbtnLinkAufEin.setEnabled(false);
+ buttonGroup.add(rdbtnLinkAufEin);
+ rdbtnLinkAufEin.setBackground(Color.WHITE);
+ rdbtnLinkAufEin.setBounds(6, 105, 230, 23);
+ contentPanel.add(rdbtnLinkAufEin);
- JRadioButton radioButton_4 = new JRadioButton("Verlinken einer bestehenden VL");
- radioButton_4.setEnabled(false);
- buttonGroup.add(radioButton_4);
- radioButton_4.setBackground(Color.WHITE);
- radioButton_4.setBounds(6, 131, 175, 23);
- contentPanel.add(radioButton_4);
+ JRadioButton rdbtnLaborLschen = new JRadioButton("Labor l\u00F6schen");
+ rdbtnLaborLschen.setEnabled(false);
+ buttonGroup.add(rdbtnLaborLschen);
+ rdbtnLaborLschen.setBackground(Color.WHITE);
+ rdbtnLaborLschen.setBounds(6, 131, 175, 23);
+ contentPanel.add(rdbtnLaborLschen);
- JRadioButton rdbtnInhaltEinerVl = new JRadioButton("Inhalt einer VL \u00E4ndern");
+ JRadioButton rdbtnInhaltEinerVl = new JRadioButton("Laboreigenschaften \u00E4ndern");
rdbtnInhaltEinerVl.setEnabled(false);
rdbtnInhaltEinerVl.setBackground(Color.WHITE);
rdbtnInhaltEinerVl.setBounds(6, 79, 185, 23);
@@ -149,12 +149,12 @@ public class ActionChooser extends JFrame {
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- if(radioButton_1.isSelected()==true)
+ if(rdbtnLaborvorlageHerunterladen.isSelected()==true)
{
searchRohling sr=new searchRohling();
sr.setVisible(true);
dispose();
- }else if(radioButton.isSelected()==true)
+ }else if(rdbtnVerfgbaresLaborHerunterladen.isSelected()==true)
{
EingabeAllgemein ea = new EingabeAllgemein();
ea.setVisible(true);
diff --git a/Dozentenmodul/src/GUI/FTPUploader.java b/Dozentenmodul/src/GUI/FTPUploader.java
index 73a4bc5b..f1552be4 100644
--- a/Dozentenmodul/src/GUI/FTPUploader.java
+++ b/Dozentenmodul/src/GUI/FTPUploader.java
@@ -60,8 +60,6 @@ public class FTPUploader extends JFrame implements PropertyChangeListener {
JLabel labelfilesize;
JLabel labelZeit;
JLabel labelverbleibend;
- JLabel labeluser;
- JLabel labelpass;
long filesize;
double speed;
long bytesread;
@@ -211,14 +209,6 @@ public class FTPUploader extends JFrame implements PropertyChangeListener {
labelverbleibend = new JLabel("");
labelverbleibend.setBounds(434, 114, 108, 14);
contentPanel.add(labelverbleibend);
-
- labeluser = new JLabel("");
- labeluser.setBounds(196, 159, 117, 14);
- contentPanel.add(labeluser);
-
- labelpass = new JLabel("");
- labelpass.setBounds(337, 155, 134, 14);
- contentPanel.add(labelpass);
{
JPanel buttonPane = new JPanel();
buttonPane.setBackground(UIManager.getColor("Button.background"));
@@ -277,9 +267,7 @@ public class FTPUploader extends JFrame implements PropertyChangeListener {
// TODO Auto-generated catch block
e.printStackTrace();
}
- System.out.println("username: "+user.getUsername());
- labeluser.setText(user.getUsername());
- labelpass.setText(user.getPass());
+
task=new UploadTask(host,port,user.getUsername(),user.getPass(),user.getPath(), uploadFile);
task.addPropertyChangeListener(this);
task.execute();