diff --git a/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java b/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java index 38a68eb..1802bc7 100644 --- a/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java +++ b/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java @@ -27,7 +27,7 @@ public class Fond extends JPanel implements ActionListener { } @Override - protected void actionPerformed(ActionEvent evenement) { + public void actionPerformed(ActionEvent evenement) { if (evenement.getSource() == this.Cyan) { this.setBackground(Color.CYAN); } else if (evenement.getSource() == this.Magenta) { diff --git a/DEV.2.1/TP/TP8-Evenements/3.Radio/Radio.java b/DEV.2.1/TP/TP8-Evenements/3.Radio/Radio.java index 8c5f15d..6bb53ae 100644 --- a/DEV.2.1/TP/TP8-Evenements/3.Radio/Radio.java +++ b/DEV.2.1/TP/TP8-Evenements/3.Radio/Radio.java @@ -27,7 +27,7 @@ public class Radio extends JPanel implements ActionListener { } @Override - protected void actionPerformed(ActionEvent evenement) { + public void actionPerformed(ActionEvent evenement) { if (evenement.getSource() == this.Cyan) { this.setBackground(Color.CYAN); } else if (evenement.getSource() == this.Magenta) { @@ -37,10 +37,3 @@ public class Radio extends JPanel implements ActionListener { } } } - - -./Radio.java:30: error: actionPerformed(ActionEvent) in Radio cannot implement actionPerformed(ActionEvent) in ActionListener - protected void actionPerformed(ActionEvent evenement) { - ^ - attempting to assign weaker access privileges; was public -1 error