//In this case I have the icon and no Null Pointer Exception
final JColorChooser locColorChooser = new JColorChooser();
locColorChooser.addChooserPanel(new EyeDropperColorChooserPanel());
//But if I create a new class inheriting from EyeDropperColorChooserPanel I got the null pointer exception
private class EyeDropper extends EyeDropperColorChooserPanel{
public EyeDropper()
{
super();
}
}
final JColorChooser locColorChooser = new JColorChooser();
locColorChooser.addChooserPanel(new EyeDropper());