Added StatusPanel as an ImageObserver when drawing the background image.
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user