posted 19 years ago
This line
should go in your class constructor; it only needs to be called once.
Since you are tiling your component you shouldn't need the call to super.paint. But if you put it first in your paint method it won't cover your tiled images with the default background.
Also, the viewport must be set to non–opaque — see JScrollPane api notes at top.
Another option is to tile the viewport itself