This commit is contained in:
Emmanuel Srivastava
2025-03-05 21:32:35 +01:00
parent db705f93a8
commit 3d1afc128c
2 changed files with 12 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ public class Fond extends JPanel implements ActionListener {
private JButton Cyan, Magenta, Jaune;
public Fond() {
super();
this.setLayout(null);
this.Cyan = new JButton("Cyan");
@@ -26,7 +27,7 @@ public class Fond extends JPanel implements ActionListener {
}
@Override
public void actionPerformed(ActionEvent evenement) {
protected void actionPerformed(ActionEvent evenement) {
if (evenement.getSource() == this.Cyan) {
this.setBackground(Color.CYAN);
} else if (evenement.getSource() == this.Magenta) {