AWT problem on linux
Diego Santa Cruz
Diego.Santacruz at epfl.ch
Wed Sep 2 15:27:07 PDT 1998
Peter C. Mehlitz wrote:
>
> >The problem is that nothing is showing up (it's a very simple GUI, just an
> >mage in a window, and does not use any events).
>
> Can you supply some example code? Doesn't it even display the Frame or is it
> just the Image that is not drawn?
>
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.
Thanks anyway,
Diego
--
-----------------------------------------------------------------------
Diego Santa Cruz mailto:Diego.Santacruz at epfl.ch
Signal Processing Laboratory (LTS) http://ltswww.epfl.ch
Swiss Federal Institute of Technology (EPFL)
EL - Ecublens - CH-1015 Lausanne - Switzerland
Office: ELH 130
Phone: +41 - 21 - 693 56 45 (Office)
+41 - 21 - 693 46 20 (LTS Lab) * *
Fax: +41 - 21 - 693 76 00 'O^-'
Mobile: +41 - 79 - 435 06 45 ( o )
-------------------------------------------------------- oOO U OOo ---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 559 bytes
Desc: Card for Diego Santa Cruz
Url : http://kaffe.org/pipermail/kaffe/attachments/19980903/0f55dd05/attachment-0006.vcf
More information about the kaffe
mailing list