This commit is contained in:
Emmanuel Srivastava
2025-03-05 21:43:30 +01:00
parent 70336db647
commit 00dea4bbf5

View File

@@ -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