-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFragenDialog
49 lines (36 loc) · 1.02 KB
/
FragenDialog
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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class main extends JFrame {
// Anfang Attribute
// Ende Attribute
public main(boolean isTeacher) {
// Frame-Initialisierung
super();
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
int frameWidth = 1000;
int frameHeight = 600;
setSize(frameWidth, frameHeight);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (d.width - getSize().width) / 2;
int y = (d.height - getSize().height) / 2;
setLocation(x, y);
setTitle("main");
setResizable(false);
Container cp = getContentPane();
cp.setLayout(null);
// Anfang Komponenten
// Ende Komponenten
setVisible(true);
} // end of public main
// Anfang Methoden
public static void main(String[] args) {
new main();
} // end of main
public void createTeacherUI() {
}
public void createStudentUI() {
}
// Ende Methoden
} // end of class main