
Agathed
By: a guest on
Oct 23rd, 2008 | syntax:
Java | size: 0.52 KB | hits: 71 | expires: Never
//In this case I have the icon and no Null Pointer Exception
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();
}
}
locColorChooser.addChooserPanel(new EyeDropper());