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
|
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;
@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() {
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);
}
}
|