From 00dea4bbf58500204a82bd408bfa6ac30248a5a0 Mon Sep 17 00:00:00 2001 From: Emmanuel Srivastava Date: Wed, 5 Mar 2025 21:43:30 +0100 Subject: [PATCH] update --- DEV.2.1/TP/TP8-Evenements/3.Radio/Radio.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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