summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/GUI/FertigStellen.java
diff options
context:
space:
mode:
authortspitzer2013-10-17 14:41:12 +0200
committertspitzer2013-10-17 14:41:12 +0200
commit9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6 (patch)
treecc675d389f18ffea779dbd29530da99468927995 /Dozentenmodul/src/GUI/FertigStellen.java
parentMethode hinzugefügt um das Satelliten Script auszuführen (diff)
downloadtutor-module-9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6.tar.gz
tutor-module-9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6.tar.xz
tutor-module-9f7c44a1afe2a599a9e0249b480cfa3b4155e9e6.zip
Version vom 17.10
-Hinweise eingefügt -Freigabe GUI ohne funktionalität eingefügt -Fenster zentriert -Download und Upload um Informationen erweitert
Diffstat (limited to 'Dozentenmodul/src/GUI/FertigStellen.java')
-rw-r--r--Dozentenmodul/src/GUI/FertigStellen.java375
1 files changed, 0 insertions, 375 deletions
diff --git a/Dozentenmodul/src/GUI/FertigStellen.java b/Dozentenmodul/src/GUI/FertigStellen.java
deleted file mode 100644
index 4dfc92cf..00000000
--- a/Dozentenmodul/src/GUI/FertigStellen.java
+++ /dev/null
@@ -1,375 +0,0 @@
-package GUI;
-import java.awt.FlowLayout;
-import java.awt.List;
-
-import javax.swing.JButton;
-import javax.swing.JDialog;
-import javax.swing.JPanel;
-import javax.swing.UIManager;
-import javax.swing.UnsupportedLookAndFeelException;
-import javax.swing.border.EmptyBorder;
-import java.awt.Color;
-import javax.swing.JLabel;
-import java.awt.Font;
-import javax.swing.JTextPane;
-import java.awt.SystemColor;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import javax.swing.JSeparator;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JMenu;
-import Models.person;
-import Models.vm;
-import javax.swing.JTextArea;
-import javax.swing.JScrollPane;
-import java.awt.event.WindowAdapter;
-import java.awt.event.WindowEvent;
-
-@SuppressWarnings("serial")
-public class FertigStellen extends JDialog {
-
- private final JScrollPane contentPanel = new JScrollPane();
- String[] result;
-
- /**
- * Launch the application.
- */
- public static void main(String[] args) {
- try {
- FertigStellen dialog = new FertigStellen();
- dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
- dialog.setVisible(true);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- /**
- * Create the dialog.
- */
- @SuppressWarnings("deprecation")
- public FertigStellen() {
- addWindowListener(new WindowAdapter() {
- @Override
- public void windowClosing(WindowEvent e) {
- System.exit(0);
- }
- });
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- } catch (ClassNotFoundException | InstantiationException
- | IllegalAccessException | UnsupportedLookAndFeelException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- setTitle("Dozentenmodul");
- setBounds(100, 100, 561, 908);
- getContentPane().setLayout(null);
- {
- JPanel panel = new JPanel();
- panel.setBounds(0, 0, 545, 68);
- getContentPane().add(panel);
- panel.setLayout(null);
- {
- JLabel lblNewLabel = new JLabel("Fertig stellen (Schritt 6 von 6)");
- lblNewLabel.setBounds(10, 11, 391, 22);
- panel.add(lblNewLabel);
- lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 18));
- }
-
- JTextPane txtpnBitteWhlenSie = new JTextPane();
- txtpnBitteWhlenSie.setEditable(false);
- txtpnBitteWhlenSie.setBackground(SystemColor.menu);
- txtpnBitteWhlenSie.setText("Bitte laden Sie nun ihre fertige VL mithilfe des Uploaders auf den Server.");
- txtpnBitteWhlenSie.setBounds(10, 36, 391, 42);
- panel.add(txtpnBitteWhlenSie);
- }
- contentPanel.setBounds(10, 87, 525, 702);
- contentPanel.setBackground(Color.WHITE);
- contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
- getContentPane().add(contentPanel);
- contentPanel.setLayout(null);
-
- JLabel lblZusammenfassung = new JLabel("Zusammenfassung");
- lblZusammenfassung.setFont(new Font("Tahoma", Font.PLAIN, 16));
- lblZusammenfassung.setBounds(10, 11, 505, 14);
- contentPanel.add(lblZusammenfassung);
-
- JLabel lblVerantwortlicher = new JLabel("Verantwortlicher");
- lblVerantwortlicher.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblVerantwortlicher.setBounds(10, 36, 244, 14);
- contentPanel.add(lblVerantwortlicher);
-
- JLabel lblErsteller = new JLabel("Ersteller");
- lblErsteller.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblErsteller.setBounds(264, 36, 251, 14);
- contentPanel.add(lblErsteller);
-
- JLabel lblName = new JLabel("Vorname:");
- lblName.setBounds(10, 61, 65, 14);
- contentPanel.add(lblName);
-
- JLabel lblName_1 = new JLabel("Nachname:");
- lblName_1.setBounds(10, 86, 65, 14);
- contentPanel.add(lblName_1);
-
- JLabel lblHochschule = new JLabel("Hochschule:");
- lblHochschule.setBounds(10, 111, 65, 14);
- contentPanel.add(lblHochschule);
-
- JLabel lblEmail = new JLabel("E-Mail:");
- lblEmail.setBounds(10, 136, 65, 14);
- contentPanel.add(lblEmail);
-
- JLabel lblTelnummer = new JLabel("Tel.-Nummer:");
- lblTelnummer.setBounds(10, 161, 65, 14);
- contentPanel.add(lblTelnummer);
-
- JLabel lblFakultt = new JLabel("Fakult\u00E4t:");
- lblFakultt.setBounds(10, 186, 65, 14);
- contentPanel.add(lblFakultt);
-
- JLabel label = new JLabel("Fakult\u00E4t:");
- label.setBounds(264, 186, 65, 14);
- contentPanel.add(label);
-
- JLabel label_1 = new JLabel("Tel.-Nummer:");
- label_1.setBounds(264, 161, 65, 14);
- contentPanel.add(label_1);
-
- JLabel label_2 = new JLabel("E-Mail:");
- label_2.setBounds(264, 136, 65, 14);
- contentPanel.add(label_2);
-
- JLabel label_3 = new JLabel("Hochschule:");
- label_3.setBounds(264, 111, 65, 14);
- contentPanel.add(label_3);
-
- JLabel label_4 = new JLabel("Nachname:");
- label_4.setBounds(264, 86, 65, 14);
- contentPanel.add(label_4);
-
- JLabel label_5 = new JLabel("Vorname:");
- label_5.setBounds(264, 61, 65, 14);
- contentPanel.add(label_5);
-
- JLabel lblSystem = new JLabel("System");
- lblSystem.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblSystem.setBounds(10, 211, 171, 14);
- contentPanel.add(lblSystem);
-
- JLabel lblLaborname = new JLabel("Laborname:");
- lblLaborname.setBounds(10, 236, 100, 14);
- contentPanel.add(lblLaborname);
-
- JLabel lblKurzbeschreibung = new JLabel("Kurzbeschreibung:");
- lblKurzbeschreibung.setBounds(10, 261, 100, 14);
- contentPanel.add(lblKurzbeschreibung);
-
- JLabel lblLangbeschreibung = new JLabel("Langbeschreibung:");
- lblLangbeschreibung.setBounds(10, 341, 100, 14);
- contentPanel.add(lblLangbeschreibung);
-
- JLabel lblKommentar = new JLabel("Kommentar:");
- lblKommentar.setBounds(10, 425, 100, 14);
- contentPanel.add(lblKommentar);
-
- JLabel lblBetriebssystem = new JLabel("Betriebssystem:");
- lblBetriebssystem.setBounds(10, 510, 100, 14);
- contentPanel.add(lblBetriebssystem);
-
- JLabel lblGltigVon = new JLabel("G\u00FCltig von");
- lblGltigVon.setBounds(10, 535, 100, 14);
- contentPanel.add(lblGltigVon);
-
- JLabel lblBis = new JLabel("bis");
- lblBis.setBounds(262, 535, 46, 14);
- contentPanel.add(lblBis);
-
- JLabel lblSoftware = new JLabel("Ausgew\u00E4hlte Software");
- lblSoftware.setFont(new Font("Tahoma", Font.PLAIN, 14));
- lblSoftware.setBounds(10, 560, 171, 14);
- contentPanel.add(lblSoftware);
-
- JLabel label_Vorname_V = new JLabel("");
- label_Vorname_V.setText(person.verantowrtlicher.getVorname());
- label_Vorname_V.setBounds(85, 61, 169, 14);
- contentPanel.add(label_Vorname_V);
-
- JLabel label_Nachname_V = new JLabel((String) null);
- label_Nachname_V.setText(person.verantowrtlicher.getName());
- label_Nachname_V.setBounds(85, 86, 169, 14);
- contentPanel.add(label_Nachname_V);
-
- JLabel label_Hochschule_V = new JLabel((String) null);
- label_Hochschule_V.setText(person.verantowrtlicher.getHochschule());
- label_Hochschule_V.setBounds(85, 111, 169, 14);
- contentPanel.add(label_Hochschule_V);
-
- JLabel label_EMail_V = new JLabel((String) null);
- label_EMail_V.setText(person.verantowrtlicher.getEMail());
- label_EMail_V.setBounds(85, 136, 169, 14);
- contentPanel.add(label_EMail_V);
-
- JLabel label_Tel_V = new JLabel((String) null);
- label_Tel_V.setText(person.verantowrtlicher.getTel());
- label_Tel_V.setBounds(85, 161, 169, 14);
- contentPanel.add(label_Tel_V);
-
- JLabel label_Fak_V = new JLabel((String) null);
- label_Fak_V.setText(person.verantowrtlicher.getFakultät());
- label_Fak_V.setBounds(85, 186, 169, 14);
- contentPanel.add(label_Fak_V);
-
- JLabel label_Vorname_E = new JLabel((String) null);
- label_Vorname_E.setText(person.ersteller.getVorname());
- label_Vorname_E.setBounds(339, 61, 169, 14);
- contentPanel.add(label_Vorname_E);
-
- JLabel label_Nachname_E = new JLabel((String) null);
- label_Nachname_E.setText(person.ersteller.getName());
- label_Nachname_E.setBounds(339, 86, 169, 14);
- contentPanel.add(label_Nachname_E);
-
- JLabel label_Hochschule_E = new JLabel((String) null);
- label_Hochschule_E.setText(person.ersteller.getHochschule());
- label_Hochschule_E.setBounds(339, 111, 169, 14);
- contentPanel.add(label_Hochschule_E);
-
- JLabel label_EMail_E = new JLabel((String) null);
- label_EMail_E.setText(person.ersteller.getEMail());
- label_EMail_E.setBounds(339, 136, 169, 14);
- contentPanel.add(label_EMail_E);
-
- JLabel label_Tel_E = new JLabel((String) null);
- label_Tel_E.setText(person.ersteller.getTel());
- label_Tel_E.setBounds(339, 161, 169, 14);
- contentPanel.add(label_Tel_E);
-
- JLabel label_Fak_E = new JLabel((String) null);
- label_Fak_E.setText(person.ersteller.getFakultät());
- label_Fak_E.setBounds(339, 186, 169, 14);
- contentPanel.add(label_Fak_E);
-
- JLabel label_Laborname = new JLabel("");
- label_Laborname.setText(vm.vl.getLaborname());
- label_Laborname.setBounds(120, 236, 395, 14);
- contentPanel.add(label_Laborname);
-
- JTextArea textArea = new JTextArea();
- textArea.setText(vm.vl.getShortDesc());
- textArea.setEditable(false);
- JScrollPane scrollPane = new JScrollPane(textArea);
- scrollPane.setBounds(120, 261, 395, 74);
- contentPanel.add(scrollPane);
-
- JTextArea textArea_1 = new JTextArea();
- textArea_1.setText(vm.vl.getLongDesc());
- textArea_1.setEditable(false);
- JScrollPane scrollPane_1 = new JScrollPane(textArea_1);
- scrollPane_1.setBounds(120, 341, 395, 74);
- contentPanel.add(scrollPane_1);
-
- JTextArea textArea_2 = new JTextArea();
- textArea_2.setText(vm.vl.getComment());
- textArea_2.setEditable(false);
- JScrollPane scrollPane_2 = new JScrollPane(textArea_2);
- scrollPane_2.setBounds(120, 425, 395, 74);
- contentPanel.add(scrollPane_2);
-
- JLabel label_os = new JLabel("");
- label_os.setText(vm.vl.getOS());
- label_os.setBounds(120, 510, 395, 14);
- contentPanel.add(label_os);
-
- JLabel label_start = new JLabel("");
- label_start.setText(vm.vl.getBegin().toString());
- label_start.setBounds(120, 535, 134, 14);
- contentPanel.add(label_start);
-
- JLabel label_end = new JLabel("");
- label_end.setText(vm.vl.getEnd().toString());
- label_end.setBounds(318, 535, 197, 14);
- contentPanel.add(label_end);
-
- JButton btnUploaderStarten = new JButton("Uploader starten");
- btnUploaderStarten.setBounds(402, 670, 113, 23);
- contentPanel.add(btnUploaderStarten);
- List sum=new List();
- List temp=vm.vl.getSoftware();
- for(int i=0;i<temp.getItemCount();i++)
- {
- sum.addItem(temp.getItem(i));
- }
- JScrollPane scrollPane_3 = new JScrollPane(sum);
-
- scrollPane_3.setBounds(10, 585, 505, 74);
- contentPanel.add(scrollPane_3);
- btnUploaderStarten.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- FTPUploader ftp=new FTPUploader();
- ftp.setVisible(true);
- }
- });
- {
- JPanel buttonPane = new JPanel();
- buttonPane.setBounds(0, 813, 545, 36);
- buttonPane.setBackground(SystemColor.menu);
- buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
- getContentPane().add(buttonPane);
- {
- JButton okButton = new JButton("Zur\u00FCck");
- okButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- EingabeSoftwareDaten ea=new EingabeSoftwareDaten();
- ea.setVisible(true);
- dispose();
- }
- });
- okButton.setActionCommand("OK");
- buttonPane.add(okButton);
- getRootPane().setDefaultButton(okButton);
- }
- {
- JButton cancelButton = new JButton("Fertig");
- cancelButton.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- System.exit(0);
- }
- });
- cancelButton.setActionCommand("Cancel");
- buttonPane.add(cancelButton);
- }
- }
-
- JSeparator separator = new JSeparator();
- separator.setBounds(0, 79, 545, 2);
- getContentPane().add(separator);
-
- JSeparator separator_1 = new JSeparator();
- separator_1.setBounds(0, 800, 545, 2);
- getContentPane().add(separator_1);
-
- JMenuBar menuBar = new JMenuBar();
- setJMenuBar(menuBar);
-
- JMenu mnSuchen = new JMenu("Suchen");
- menuBar.add(mnSuchen);
-
- JMenuItem mntmVlSuche = new JMenuItem("VL Suche");
- mnSuchen.add(mntmVlSuche);
-
- JMenu mnHilfe = new JMenu("Hilfe");
- menuBar.add(mnHilfe);
-
- JMenuItem mntmFaq = new JMenuItem("FAQ");
- mnHilfe.add(mntmFaq);
-
- JMenuItem mntmOtrs = new JMenuItem("OTRS");
- mnHilfe.add(mntmOtrs);
-
-
-
- }
-}