Added StatusPanel as an ImageObserver when drawing the background image.

This commit is contained in:
Matt Jensen
2008-12-19 20:21:09 +00:00
parent 4071e98ab5
commit 0453991622
@@ -144,7 +144,7 @@ public class StatusPanel extends JComponent
img = _bg.getImage(_progress); img = _bg.getImage(_progress);
} }
if (img != null) { if (img != null) {
gfx.drawImage(img, 0, 0, null); gfx.drawImage(img, 0, 0, this);
} else { } else {
gfx.setColor(getBackground()); gfx.setColor(getBackground());
gfx.fillRect(0, 0, getWidth(), getHeight()); gfx.fillRect(0, 0, getWidth(), getHeight());