salut tous le monde j'ai créer un interface java en jbuilder après j'ai utiliser ce code à éclipse mais mon interface ne peux pas s'afficher voici le code je demande votre aide :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
import javax.swing.*;
import java.awt.*;
 
 
 
public class aaa {
  JPanel jPanel1 = new JPanel();
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();
  JLabel jLabel3 = new JLabel();
  JTextField jTextField1 = new JTextField();
  JPasswordField jPasswordField1 = new JPasswordField();
  JButton jButton1 = new JButton();
  JButton jButton2 = new JButton();
 
  public aaa() {
    try {
      jbInit();
    }
    catch(Exception e) {
      e.printStackTrace();
    }
  }
  private void jbInit() throws Exception {
    jLabel1.setFont(new java.awt.Font("Serif", 3, 20));
    jLabel1.setText("Association des oeuvres sociales");
    jLabel1.setBounds(new Rectangle(172, 17, 333, 40));
    jPanel1.setLayout(null);
    jLabel2.setText("Login");
    jLabel2.setBounds(new Rectangle(99, 143, 113, 36));
    jLabel3.setText("passwrd");
    jLabel3.setBounds(new Rectangle(98, 227, 124, 36));
    jTextField1.setText("jTextField1");
    jTextField1.setBounds(new Rectangle(246, 144, 162, 32));
    jPasswordField1.setText("jPasswordField1");
    jPasswordField1.setBounds(new Rectangle(246, 228, 157, 30));
    jButton1.setBounds(new Rectangle(96, 326, 135, 46));
    jButton1.setText("rénitialiser");
    jButton2.setBounds(new Rectangle(285, 325, 167, 45));
    jButton2.setText("valider");
    jPanel1.add(jLabel1, null);
    jPanel1.add(jButton1, null);
    jPanel1.add(jButton2, null);
    jPanel1.add(jPasswordField1, null);
    jPanel1.add(jTextField1, null);
    jPanel1.add(jLabel2, null);
    jPanel1.add(jLabel3, null);
  }
  public static void main(String[] args){
	  aaa a=new aaa();
	  a.setVisible(true);
  }
 
}