1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
|
package GUI;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.List;
import java.awt.Toolkit;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
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 javax.swing.JTabbedPane;
import java.awt.Panel;
import java.text.SimpleDateFormat;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
@SuppressWarnings("serial")
public class Summary extends JFrame {
String[] result;
/**
* Launch the application.
*/
public static void main(String[] args) {
try {
Summary dialog = new Summary();
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Create the dialog.
*/
public Summary() {
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 *Prototyp*");
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int top=(screenSize.height - 603) / 2;
int left=(screenSize.width - 722) / 2;
setBounds(left, top, 603, 722);
//setBounds(100, 100, 603, 722);
getContentPane().setLayout(null);
{
JPanel panel = new JPanel();
panel.setBounds(0, 0, 577, 68);
getContentPane().add(panel);
panel.setLayout(null);
{
JLabel lblNewLabel = new JLabel("Fertig stellen (Schritt 7 von 7)");
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);
}
{
JPanel buttonPane = new JPanel();
buttonPane.setBounds(0, 627, 577, 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) {
Freigabe ea=new Freigabe();
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, 587, 2);
getContentPane().add(separator);
JSeparator separator_1 = new JSeparator();
separator_1.setBounds(0, 614, 587, 2);
getContentPane().add(separator_1);
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
tabbedPane.setBounds(10, 111, 567, 458);
getContentPane().add(tabbedPane);
Panel panel = new Panel();
panel.setBackground(Color.WHITE);
tabbedPane.addTab("Allgemein", null, panel, null);
panel.setLayout(null);
JLabel label = new JLabel("Ersteller");
label.setFont(new Font("Tahoma", Font.PLAIN, 14));
label.setBounds(264, 11, 251, 14);
panel.add(label);
JLabel label_1 = new JLabel("Vorname:");
label_1.setBounds(10, 36, 65, 14);
panel.add(label_1);
JLabel label_2 = new JLabel("Vorname:");
label_2.setBounds(264, 36, 65, 14);
panel.add(label_2);
JLabel label_3 = new JLabel("Nachname:");
label_3.setBounds(10, 61, 65, 14);
panel.add(label_3);
JLabel label_4 = new JLabel("Nachname:");
label_4.setBounds(264, 61, 65, 14);
panel.add(label_4);
JLabel label_5 = new JLabel("Hochschule:");
label_5.setBounds(10, 86, 65, 14);
panel.add(label_5);
JLabel label_6 = new JLabel("Hochschule:");
label_6.setBounds(264, 86, 65, 14);
panel.add(label_6);
JLabel label_Vorname_V = new JLabel((String) null);
label_Vorname_V.setText(person.verantowrtlicher.getVorname());
label_Vorname_V.setBounds(85, 36, 169, 14);
panel.add(label_Vorname_V);
JLabel label_Vorname_E = new JLabel((String) null);
label_Vorname_E.setText(person.ersteller.getVorname());
label_Vorname_E.setBounds(339, 36, 169, 14);
panel.add(label_Vorname_E);
JLabel label_Nachname_E = new JLabel((String) null);
label_Nachname_E.setText(person.ersteller.getName());
label_Nachname_E.setBounds(339, 61, 169, 14);
panel.add(label_Nachname_E);
JLabel label_Nachname_V = new JLabel((String) null);
label_Nachname_V.setText(person.verantowrtlicher.getName());
label_Nachname_V.setBounds(85, 61, 169, 14);
panel.add(label_Nachname_V);
JLabel label_Hochschule_V = new JLabel((String) null);
label_Hochschule_V.setText(person.verantowrtlicher.getHochschule());
label_Hochschule_V.setBounds(85, 86, 169, 14);
panel.add(label_Hochschule_V);
JLabel label_Hochschule_E = new JLabel((String) null);
label_Hochschule_E.setText(person.ersteller.getHochschule());
label_Hochschule_E.setBounds(339, 86, 169, 14);
panel.add(label_Hochschule_E);
JLabel label_Mail_E = new JLabel((String) null);
label_Mail_E.setText(person.ersteller.getEMail());
label_Mail_E.setBounds(339, 111, 169, 14);
panel.add(label_Mail_E);
JLabel label_14 = new JLabel("E-Mail:");
label_14.setBounds(264, 111, 65, 14);
panel.add(label_14);
JLabel label_Mail_V = new JLabel((String) null);
label_Mail_V.setText(person.verantowrtlicher.getEMail());
label_Mail_V.setBounds(85, 111, 169, 14);
panel.add(label_Mail_V);
JLabel label_16 = new JLabel("E-Mail:");
label_16.setBounds(10, 111, 65, 14);
panel.add(label_16);
JLabel label_17 = new JLabel("Tel.-Nummer:");
label_17.setBounds(10, 136, 65, 14);
panel.add(label_17);
JLabel label_Tel_V = new JLabel((String) null);
label_Tel_V.setText(person.verantowrtlicher.getTel());
label_Tel_V.setBounds(85, 136, 169, 14);
panel.add(label_Tel_V);
JLabel label_19 = new JLabel("Tel.-Nummer:");
label_19.setBounds(264, 136, 65, 14);
panel.add(label_19);
JLabel label_Tel_E = new JLabel((String) null);
label_Tel_E.setText(person.ersteller.getTel());
label_Tel_E.setBounds(339, 136, 169, 14);
panel.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, 161, 169, 14);
panel.add(label_Fak_E);
JLabel label_22 = new JLabel("Fakult\u00E4t:");
label_22.setBounds(264, 161, 65, 14);
panel.add(label_22);
JLabel label_Fak_V = new JLabel((String) null);
label_Fak_V.setText(person.verantowrtlicher.getFakultät());
label_Fak_V.setBounds(85, 161, 169, 14);
panel.add(label_Fak_V);
JLabel label_24 = new JLabel("Fakult\u00E4t:");
label_24.setBounds(10, 161, 65, 14);
panel.add(label_24);
JLabel label_25 = new JLabel("Verantwortlicher");
label_25.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_25.setBounds(10, 11, 244, 14);
panel.add(label_25);
JButton btnZurDateneingabe = new JButton("Daten \u00E4ndern");
btnZurDateneingabe.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
EingabeAllgemein ea=new EingabeAllgemein();
ea.setVisible(true);
setVisible(false);
}
});
btnZurDateneingabe.setBounds(10, 186, 132, 23);
panel.add(btnZurDateneingabe);
Panel panel_1 = new Panel();
panel_1.setBackground(Color.WHITE);
tabbedPane.addTab("Systeminformationen", null, panel_1, null);
panel_1.setLayout(null);
JLabel label_end = new JLabel((String) null);
SimpleDateFormat fmt = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
String Date_End=fmt.format(vm.vl.getEnd());
label_end.setText(Date_End);
label_end.setBounds(318, 310, 197, 14);
panel_1.add(label_end);
JLabel label_27 = new JLabel("bis");
label_27.setBounds(262, 310, 46, 14);
panel_1.add(label_27);
JLabel label_begin = new JLabel((String) null);
String Date_Begin=fmt.format(vm.vl.getBegin());
label_begin.setText(Date_Begin);
label_begin.setBounds(120, 310, 134, 14);
panel_1.add(label_begin);
JLabel label_29 = new JLabel("G\u00FCltig von");
label_29.setBounds(10, 310, 100, 14);
panel_1.add(label_29);
JLabel label_30 = new JLabel("Betriebssystem:");
label_30.setBounds(10, 285, 100, 14);
panel_1.add(label_30);
JLabel label_OS = new JLabel((String) null);
label_OS.setText(vm.vl.getOS());
label_OS.setBounds(120, 285, 395, 14);
panel_1.add(label_OS);
JScrollPane scrollPane_3 = new JScrollPane();
scrollPane_3.setBounds(121, 201, 393, 72);
panel_1.add(scrollPane_3);
JTextArea textArea_comment = new JTextArea();
textArea_comment.setFont(new Font("Tahoma", Font.PLAIN, 11));
textArea_comment.setText(vm.vl.getComment());
scrollPane_3.setViewportView(textArea_comment);
textArea_comment.setEditable(false);
JLabel label_32 = new JLabel("Kommentar:");
label_32.setBounds(10, 200, 100, 14);
panel_1.add(label_32);
JScrollPane scrollPane_2 = new JScrollPane();
scrollPane_2.setBounds(121, 117, 393, 72);
panel_1.add(scrollPane_2);
JTextArea textArea_long = new JTextArea();
textArea_long.setFont(new Font("Tahoma", Font.PLAIN, 11));
textArea_long.setText(vm.vl.getLongDesc());
scrollPane_2.setViewportView(textArea_long);
textArea_long.setEditable(false);
JLabel label_33 = new JLabel("Langbeschreibung:");
label_33.setBounds(10, 116, 100, 14);
panel_1.add(label_33);
JScrollPane scrollPane_1 = new JScrollPane();
scrollPane_1.setBounds(121, 37, 393, 72);
panel_1.add(scrollPane_1);
JTextArea textArea_short = new JTextArea();
textArea_short.setFont(new Font("Tahoma", Font.PLAIN, 11));
textArea_short.setText(vm.vl.getShortDesc());
scrollPane_1.setViewportView(textArea_short);
textArea_short.setEditable(false);
JLabel label_34 = new JLabel("Kurzbeschreibung:");
label_34.setBounds(10, 36, 100, 14);
panel_1.add(label_34);
JLabel label_35 = new JLabel("Laborname:");
label_35.setBounds(10, 11, 100, 14);
panel_1.add(label_35);
JLabel label_Laborname = new JLabel((String) null);
label_Laborname.setText(vm.vl.getLaborname());
label_Laborname.setBounds(120, 11, 395, 14);
panel_1.add(label_Laborname);
JButton btnDatenndern = new JButton("Daten \u00E4ndern");
btnDatenndern.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
EingabeSystemDaten es=new EingabeSystemDaten();
es.setVisible(true);
setVisible(false);
}
});
btnDatenndern.setBounds(10, 335, 132, 23);
panel_1.add(btnDatenndern);
Panel panel_2 = new Panel();
panel_2.setBackground(Color.WHITE);
tabbedPane.addTab("Software", null, panel_2, null);
panel_2.setLayout(null);
JScrollPane scrollPane = new JScrollPane();
scrollPane.setBounds(11, 37, 541, 334);
panel_2.add(scrollPane);
List list_sw = new List();
list_sw.setEnabled(false);
List temp=vm.vl.getSoftware();
for(int i=0;i<temp.getItemCount();i++)
{
list_sw.add(temp.getItem(i));
}
scrollPane.setViewportView(list_sw);
JLabel lblInstallierteSoftware = new JLabel("Installierte Software");
lblInstallierteSoftware.setFont(new Font("Tahoma", Font.PLAIN, 14));
lblInstallierteSoftware.setBounds(10, 11, 171, 14);
panel_2.add(lblInstallierteSoftware);
JButton btnDatenndern_1 = new JButton("Daten \u00E4ndern");
btnDatenndern_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
EingabeSoftwareDaten es=new EingabeSoftwareDaten();
es.setVisible(true);
setVisible(false);
}
});
btnDatenndern_1.setBounds(11, 382, 132, 23);
panel_2.add(btnDatenndern_1);
JLabel lblZusammenfassung = new JLabel("Zusammenfassung");
lblZusammenfassung.setFont(new Font("Tahoma", Font.PLAIN, 16));
lblZusammenfassung.setBounds(10, 86, 223, 20);
getContentPane().add(lblZusammenfassung);
JButton btnUploadtoolStarten = new JButton("Uploadtool starten");
btnUploadtoolStarten.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
FTPUploader up=new FTPUploader();
up.setVisible(true);
}
});
btnUploadtoolStarten.setBounds(439, 580, 138, 23);
getContentPane().add(btnUploadtoolStarten);
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);
}
}
|