Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
JButton btnNewButton = new JButton("Acceuil");
			btnNewButton.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
 
					Acceuil a = new Acceuil();
					this.setVisible(false);
					a.setVisible(true);
				}
			});
j'ai une erreur dans la ligne suivante: this.setVisible(false); (The method setVisible(boolean) is undefined for the type new ActionListener(){})