Fix for bug where on first installation, the Getdown window is sometimes

much smaller than the background image.  If we're going to change the
preferred size of the StatusPanel, we have to invalidate it so that
Window.pack knows to recompute the bounds.  The reason this worked sometimes
(or even most of the time) is that there's a race condition between the
Getdown thread and the AWT thread: sometimes the real interface bits (_ifc)
are in place by the time initInterface is first called, sometimes not.  For
the sake of consistency, we should probably fix that, but for now it's not
a big deal: the backgroundless interface is rarely visible.
This commit is contained in:
Andrzej Kapolka
2010-07-27 03:27:07 +00:00
parent 051db7ebc9
commit c3ce5cc2a9
@@ -69,6 +69,7 @@ public class StatusPanel extends JComponent
_psize = new Dimension(img.getWidth(null), img.getHeight(null));
}
_barimg = barimg;
invalidate();
}
/**