salut et merci de bien vouloir m'aider j'ai essayé de créé une interface mais j'ai un message d'erreur que je ne comprends pas
voila le code
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
 
package aa;
 
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
 
public class SimpleFenetre extends JFrame {
 
        // On retrouve ici beaucoup de variables qui auraient pue se trouver uniquement dans le constructeur ..
        private static final long serialVersionUID = 1l;
        private JTextField tfLogin = new JTextField();
        private JPasswordField pfPassWord = new JPasswordField();
        private JButton bOk = new JButton("login");
        private GridBagLayout gbl = new GridBagLayout();
        private JLabel lbLogin = new JLabel("Login : ");
        private JLabel lbPassWord = new JLabel("Password : ");
 
        public SimpleFenetre(){
                super("Login");
                this.setLayout(gbl);
                GridBagConstraints gbc = new GridBagConstraints();
                gbc.fill = GridBagConstraints.BOTH;
                gbc.gridx = 0;
                gbc.gridy = 0;
                gbc.weightx = 1;
                gbc.weighty = 1;
                gbc.gridwidth = 1;
                gbc.gridheight = 1;
                gbc.insets = new Insets(5,10,2,0);
 
                gbl.setConstraints(this.lbLogin, gbc);
                this.add(this.lbLogin);
 
                gbc.insets = new Insets(5,0,2,10);
                gbc.gridx = 1;
                gbc.weightx = 5;
                gbl.setConstraints(this.tfLogin, gbc);
                this.add(this.tfLogin);
 
                gbc.insets = new Insets(0,10,2,0);
                gbc.gridx =0;
                gbc.gridy = 1;
                gbc.weightx = 1;
                gbl.setConstraints(this.lbPassWord, gbc);
                this.add(this.lbPassWord);
 
                gbc.insets = new Insets(0,0,2,10);
                gbc.gridx =1;
                gbc.weightx = 5;
                gbl.setConstraints(this.pfPassWord, gbc);
                this.add(this.pfPassWord);
 
                gbc.gridx =0;
                gbc.gridy = 2;
                gbc.gridwidth =2;
                gbc.weightx = 1;
                gbc.insets = new Insets(10,50,5,50);
 
                gbl.setConstraints(this.bOk, gbc);
                this.add(this.bOk);
 
                this.setResizable(false);
                this.setSize(200, 110);
                this.setVisible(true);
        }
 
 
}
le message d'erreur



java.lang.NoSuchMethodError: main
Exception in thread "main"


merci de bien vouloir m'aider