update
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user