0
Every time I try to create a private class in java I’m not getting it. Follow the full code below.
package execucaodeprogramas;
import java.awt.event.ItemListener;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JTextField;
public class CheckBoxTest extends JFrame{
private JTextField fiel;
private JCheckBox bold, italic;
public static void main(String[] args){
CheckBoxTest application = new CheckBoxTest();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
private class CheckBoxHandler implements ItemListener{
}
}
I am using netbeans and every time error on this part. The error is in the class name.
private class CheckBoxHandler implements ItemListener{
}
Which error appears?
– Maniero