Menu

#26 Init problem in LightBox

open
nobody
None
5
2007-06-13
2007-06-13
achatell
No

When a LightBox is build, a windowListener is set, and this listener modify the png image even if the png image has not been build.

It causes NullPointerException.

The windowListener should be set only after the png image construction.

You should write something like this :

private PNGImage png = new PNGImage("images/lightbox.png", 1, 1));

instead of :
private PNGImage png;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.