Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement