forked from LyricU/ProjetJavaL3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrame.java
More file actions
120 lines (96 loc) · 2.45 KB
/
Frame.java
File metadata and controls
120 lines (96 loc) · 2.45 KB
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
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.List;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.text.StyledEditorKit.ForegroundAction;
public abstract class Frame extends JFrame{
BorderLayout border = new BorderLayout();
JButton envoyer = new JButton("Envoyer");
JButton retour = new JButton("Retour");
JButton deconnexion = new JButton("Deconnexion");
//JLabel titre2;
JPanel center = new JPanel(new FlowLayout());
JPanel center2 = new JPanel(new FlowLayout());
JPanel center3 = new JPanel(new FlowLayout());
//JPanel nameField;
JPanel bottomButton = new JPanel(new GridLayout(1, 2, 50, 0));
public Frame(){
/*this.add(center, BorderLayout.NORTH);
this.add(center2, BorderLayout.CENTER);
this.add(center3, BorderLayout.SOUTH);
//center.add(titre2);
//center2.add(nameField);
center3.add(bottomButton);
bottomButton.add(envoyer);
bottomButton.add(retour);*/
//this.titre2.setFont(new Font("Tahoma", 1, 35));
//border.setVgap(50);
this.setLayout(border);
this.setSize(1000, 400);
this.setLocationRelativeTo(null);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setVisible(true);
}
/*
public BorderLayout getBorder() {
return border;
}
public void setBorder(BorderLayout border) {
this.border = border;
}
public JButton getEnvoyer() {
return envoyer;
}
public void setEnvoyer(JButton envoyer) {
this.envoyer = envoyer;
}
public JButton getRetour() {
return retour;
}
public void setRetour(JButton retour) {
this.retour = retour;
}
public JLabel getTitre2() {
return titre2;
}
public void setTitre2(JLabel titre2) {
this.titre2 = titre2;
}
public JPanel getCenter() {
return center;
}
public void setCenter(JPanel center) {
this.center = center;
}
public JPanel getCenter2() {
return center2;
}
public void setCenter2(JPanel center2) {
this.center2 = center2;
}
public JPanel getCenter3() {
return center3;
}
public void setCenter3(JPanel center3) {
this.center3 = center3;
}
public JPanel getNameField() {
return nameField;
}
public void setNameField(JPanel nameField) {
this.nameField = nameField;
}
public JPanel getBottomButton() {
return bottomButton;
}
public void setBottomButton(JPanel bottomButton) {
this.bottomButton = bottomButton;
}
*/
}