diff options
Diffstat (limited to 'Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java')
| -rw-r--r-- | Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java | 82 |
1 files changed, 57 insertions, 25 deletions
diff --git a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java index 6ef6749f..f36e161e 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java +++ b/Dozentenmodul/src/gui/lecture/EditLectureLink_GUI.java @@ -39,6 +39,7 @@ import javax.swing.JScrollPane; import javax.swing.JSeparator; import javax.swing.JTabbedPane; import javax.swing.JTable; +import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.JTextPane; import javax.swing.RowFilter; @@ -81,6 +82,9 @@ public class EditLectureLink_GUI extends JFrame { JLabel labelLizenzSoftware; JLabel labelInternet; JLabel labelRam; + JLabel labelID; + JLabel labelVersion; + JTextArea textAreadesc; JLabel labelCPU; private JLabel labelOS; JTable tableAllImages = new JTable(); @@ -741,92 +745,117 @@ public class EditLectureLink_GUI extends JFrame { getContentPane().add(panel); JLabel lblName = new JLabel("Name:"); - lblName.setBounds(10, 30, 130, 14); + lblName.setBounds(10, 87, 130, 14); panel.add(lblName); labelName = new JLabel(""); - labelName.setBounds(150, 30, 130, 14); + labelName.setBounds(10, 102, 296, 14); panel.add(labelName); JLabel lblVerantwortlicher = new JLabel("Verantwortlicher:"); - lblVerantwortlicher.setBounds(10, 105, 130, 14); + lblVerantwortlicher.setBounds(10, 259, 130, 14); panel.add(lblVerantwortlicher); labelOS = new JLabel(""); - labelOS.setBounds(150, 55, 130, 14); + labelOS.setBounds(10, 216, 296, 14); panel.add(labelOS); JLabel lblWeitereVerantwortliche = new JLabel("Betriebssystem:"); - lblWeitereVerantwortliche.setBounds(10, 55, 130, 14); + lblWeitereVerantwortliche.setBounds(10, 202, 130, 14); panel.add(lblWeitereVerantwortliche); labelVerantwortlicher = new JLabel(""); - labelVerantwortlicher.setBounds(150, 105, 130, 14); + labelVerantwortlicher.setBounds(10, 272, 296, 14); panel.add(labelVerantwortlicher); JLabel label = new JLabel("Weitere Verantwortliche:"); - label.setBounds(10, 130, 130, 14); + label.setBounds(10, 284, 130, 14); panel.add(label); labelWeitereVerantwortliche = new JLabel(""); - labelWeitereVerantwortliche.setBounds(150, 130, 130, 14); + labelWeitereVerantwortliche.setBounds(10, 297, 296, 14); panel.add(labelWeitereVerantwortliche); - JLabel label_5 = new JLabel(""); - label_5.setBounds(150, 130, 130, 14); - panel.add(label_5); - labelUpdate = new JLabel(""); - labelUpdate.setBounds(150, 80, 130, 14); + labelUpdate.setBounds(10, 245, 296, 14); panel.add(labelUpdate); JLabel lblLetztesUpdate = new JLabel("Letztes Update:"); - lblLetztesUpdate.setBounds(10, 80, 130, 14); + lblLetztesUpdate.setBounds(10, 231, 130, 14); panel.add(lblLetztesUpdate); JLabel lblImageIstVorlage = new JLabel("Image ist Vorlage:"); - lblImageIstVorlage.setBounds(10, 259, 130, 14); + lblImageIstVorlage.setBounds(10, 336, 130, 14); panel.add(lblImageIstVorlage); labelVorlage = new JLabel(""); - labelVorlage.setBounds(150, 259, 130, 14); + labelVorlage.setBounds(10, 350, 296, 14); panel.add(labelVorlage); labelLizenzSoftware = new JLabel(""); - labelLizenzSoftware.setBounds(150, 284, 130, 14); + labelLizenzSoftware.setBounds(10, 383, 296, 14); panel.add(labelLizenzSoftware); JLabel lblLizenzpflichtigeSoftware = new JLabel("Lizenzpflichtige Software:"); - lblLizenzpflichtigeSoftware.setBounds(10, 284, 130, 14); + lblLizenzpflichtigeSoftware.setBounds(10, 367, 130, 14); panel.add(lblLizenzpflichtigeSoftware); JLabel lblInternet = new JLabel("Internet:"); - lblInternet.setBounds(10, 309, 130, 14); + lblInternet.setBounds(10, 400, 130, 14); panel.add(lblInternet); labelInternet = new JLabel(""); - labelInternet.setBounds(150, 309, 130, 14); + labelInternet.setBounds(10, 417, 296, 14); panel.add(labelInternet); JLabel lblEmpfehlungRam = new JLabel("Empfehlung RAM:"); - lblEmpfehlungRam.setBounds(10, 334, 130, 14); + lblEmpfehlungRam.setBounds(10, 432, 130, 14); panel.add(lblEmpfehlungRam); labelRam = new JLabel(""); - labelRam.setBounds(150, 334, 130, 14); + labelRam.setBounds(10, 455, 296, 14); panel.add(labelRam); JLabel lblEmpfehlungCpu = new JLabel("Empfehlung CPU:"); - lblEmpfehlungCpu.setBounds(10, 359, 130, 14); + lblEmpfehlungCpu.setBounds(10, 469, 130, 14); panel.add(lblEmpfehlungCpu); labelCPU = new JLabel(""); - labelCPU.setBounds(150, 359, 130, 14); + labelCPU.setBounds(10, 487, 296, 14); panel.add(labelCPU); JLabel lblTechnischeDaten = new JLabel("Technische Daten:"); - lblTechnischeDaten.setBounds(10, 223, 296, 14); + lblTechnischeDaten.setBounds(10, 322, 296, 14); panel.add(lblTechnischeDaten); + + JLabel lblId = new JLabel("ID:"); + lblId.setBounds(10, 23, 296, 14); + panel.add(lblId); + + labelID = new JLabel(""); + labelID.setBounds(10, 37, 296, 14); + panel.add(labelID); + + labelVersion = new JLabel(""); + labelVersion.setBounds(10, 73, 296, 14); + panel.add(labelVersion); + + JLabel lblVersion = new JLabel("Version:"); + lblVersion.setBounds(10, 57, 296, 14); + panel.add(lblVersion); + + JLabel lblBeschreibung = new JLabel("Beschreibung:"); + lblBeschreibung.setBounds(10, 119, 130, 14); + panel.add(lblBeschreibung); + + JScrollPane scrollPane = new JScrollPane(); + scrollPane.setBounds(10, 135, 296, 65); + panel.add(scrollPane); + + textAreadesc = new JTextArea(); + textAreadesc.setLineWrap(true); + textAreadesc.setBackground(SystemColor.menu); + scrollPane.setViewportView(textAreadesc); JMenuBar menuBar = new JMenuBar(); setJMenuBar(menuBar); @@ -959,6 +988,9 @@ public class EditLectureLink_GUI extends JFrame { } labelRam.setText(res.get("ram")); labelCPU.setText(res.get("cpu")); + labelID.setText(res.get("id")); + labelVersion.setText(res.get("version")); + textAreadesc.setText(res.get("desc")); } catch (TException | ParseException e1) { // TODO Auto-generated catch block e1.printStackTrace(); |
