"scroll" is null at the time you're adding it to the content pane. It needs to be initialized at that time (and you should definitely not do that in the ImagePanel class, but in the init method of the applet).
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
Free, earth friendly heat - from the CodeRanch trailboss