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