This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Why my scrollbars are not getting displayed..Where do i gone wrong?
posted 8 years ago
"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).