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 8bf2172..8c5f15d 100644 --- a/DEV.2.1/TP/TP8-Evenements/3.Radio/Radio.java +++ b/DEV.2.1/TP/TP8-Evenements/3.Radio/Radio.java @@ -9,9 +9,9 @@ public class Radio extends JPanel implements ActionListener { super(); this.setLayout(null); - this.Cyan = new JButton("Cyan"); - this.Magenta = new JButton("Magenta"); - this.Jaune = new JButton("Jaune"); + this.Cyan = new JRadioButton("Cyan"); + this.Magenta = new JRadioButton("Magenta"); + this.Jaune = new JRadioButton("Jaune"); this.Cyan.setBounds(100, 50, 100, 30); this.Magenta.setBounds(220, 50, 100, 30); @@ -37,3 +37,10 @@ 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