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
|
public class utilisateur extends JFrame {
private static final long serialVersionUID = 1L;
private JLabel jLabel2;
private JTextField jTextField2;
private JTextField jTextField1;
private JLabel jLabel1;
private JLabel jLabel0;
private JTextField jTextField0;
private JLabel jLabel3;
private JButton jButton1;
private JButton jButton0;
private static final String PREFERRED_LOOK_AND_FEEL = "javax.swing.plaf.metal.MetalLookAndFeel";
public utilisateur() {
initComponents();
setTitle ("session");
}
private void initComponents() {
setTitle("session");
setLayout(new GroupLayout());
add(getJLabel3(), new Constraints(new Leading(142, 10, 10), new Leading(7, 12, 12)));
add(getJButton0(), new Constraints(new Leading(301, 71, 10, 10), new Leading(117, 20, 12, 12)));
add(getJButton1(), new Constraints(new Leading(301, 70, 12, 12), new Leading(158, 22, 12, 12)));
add(getJTextField1(), new Constraints(new Leading(140, 116, 10, 10), new Leading(114, 26, 12, 12)));
add(getJTextField2(), new Constraints(new Leading(140, 116, 12, 12), new Leading(158, 25, 12, 12)));
add(getJLabel1(), new Constraints(new Leading(12, 12, 12), new Leading(121, 12, 12)));
add(getJLabel2(), new Constraints(new Leading(10, 10, 10), new Leading(161, 19, 12, 12)));
add(getJLabel0(), new Constraints(new Leading(12, 12, 12), new Leading(70, 12, 12)));
add(getJTextField0(), new Constraints(new Leading(117, 158, 10, 10), new Leading(64, 27, 12, 12)));
setSize(441, 207);
}
private JButton getJButton0() {
if (jButton0 == null) {
jButton0 = new JButton();
jButton0.setText("ok");
}
return jButton0;
}
private JLabel getJLabel3() {
if (jLabel3 == null) {
jLabel3 = new JLabel();
jLabel3.setText("bienvenue");
}
return jLabel3;
}
private JTextField getJTextField0() {
if (jTextField0 == null) {
jTextField0 = new JTextField();
}
return jTextField0;
}
private JLabel getJLabel0() {
if (jLabel0 == null) {
jLabel0 = new JLabel();
jLabel0.setText("votre num :");
}
return jLabel0;
}
[/QUOTE]
voici la classe maClasse
[QUOTE]
public class maClasse {
private int num;
public maClasse(int num) {
super();
this.num = num;
} |
Partager