AWT problem on linux

David Young dyoung at
Wed Sep 2 19:51:25 PDT 1998

	So that you don't have to wait for the component size, I think you
can override Component.addNotify() so that it, say, notify()'s some
object or sets a flag when the Component's peer is created. I *think*
that a component's size is know when its peer is created.... Maybe
someone can fill us in on the details?


On Thu, Sep 03, 1998 at 12:27:07AM +0200, Diego Santa Cruz wrote:
> I've found the problem.
> The problem was that I did not wait until the image dimensions became available
> and thus it was setting the component size to (-1,-1) which made the window of
> just 1 pixel in height and extreamely large in width (several thousands pixels).
> The problem did not show up in Sun's JDK since there the dimensions are
> immediately available. I just added a loop with a sleep to wait for the
> dimensions.

dyoung at
``Ya know, a dyoung, as in `The African dyoung stays in its cool
burrow during the daytime, coming out only at night to forage for

More information about the kaffe mailing list