update
This commit is contained in:
@@ -9,9 +9,9 @@ public class Radio extends JPanel implements ActionListener {
|
|||||||
super();
|
super();
|
||||||
this.setLayout(null);
|
this.setLayout(null);
|
||||||
|
|
||||||
this.Cyan = new JButton("Cyan");
|
this.Cyan = new JRadioButton("Cyan");
|
||||||
this.Magenta = new JButton("Magenta");
|
this.Magenta = new JRadioButton("Magenta");
|
||||||
this.Jaune = new JButton("Jaune");
|
this.Jaune = new JRadioButton("Jaune");
|
||||||
|
|
||||||
this.Cyan.setBounds(100, 50, 100, 30);
|
this.Cyan.setBounds(100, 50, 100, 30);
|
||||||
this.Magenta.setBounds(220, 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