-
Notifications
You must be signed in to change notification settings - Fork 0
/
Graou.java
42 lines (29 loc) · 795 Bytes
/
Graou.java
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
package graou;
import graou.vues.*;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
@SuppressWarnings("serial")
public class Graou extends JFrame {
public Graou() {
super("Graou");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setPreferredSize(new Dimension(1200,500));
setLocationRelativeTo(null);
setLayout(new BorderLayout());
// Création du Modele
Modele m = new Modele();
// Création des vues
VueHaut vHaut = new VueHaut(m);
VueImages vImage = new VueImages(m);
VueActions vActions = new VueActions(m);
add(vHaut, BorderLayout.NORTH);
add(vImage, BorderLayout.CENTER);
add(vActions, BorderLayout.SOUTH);
pack();
setVisible(true);
}
public static void main(String[] args) {
new Graou();
}
}