Every time I try to create a private class in java I can not. Follow the complete 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'm using netBeans and every time I get the error in this part. The error is in the class name.
private class CheckBoxHandler implements ItemListener{
}