Wex Wex - 1 year ago 96
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download