Wex Wex - 9 days ago 5
Java Question

Add a background image to a JPanel that repeats

I'm using an animated gif and that it repeats to fill the entire window.

I've read that overriding the

paintComponent
method will allow me to draw a single image; is there any way that I can draw that image multiple times to fill up an arbitrarily sized space?

Wex Wex
Answer

This seems to answer my question perfectly: http://stackoverflow.com/a/2228932/522877

Comments