Patrick,
    The hard coding the sizes is causing problems. Because the default font
is different for each platform. In addition to that, even if you specified a
certain font AND that font was available cross-platform. There is no
guarantee that the font will render EXACTLY the same (i.e. possibly
different sizes). To make things as cross-platform as possible (at least in
look) you should use layout managers like BorderLayout, FlowLayout, etc.

Paul Franz
----- Original Message -----
From: "Patrick Li" <[EMAIL PROTECTED]>
To: "jdjlist" <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 3:52 PM
Subject: [jdjlist] RE: AWT components' platform dependency


Hi Paul,

Could you tell me why specifying boundaries is a no-no for cross platform
development? The boundaries I set are relative to other components on the
panel, but the size is hard coded to maintain consistency, and that's what's
failing on the linux platform.

Thanks

Patrick
-----Original Message-----
From: Paul Franz [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 9:28 PM
To: jdjlist
Subject: [jdjlist] RE: AWT components' platform dependency


Sounds like part of the problem lies in doing some no-no's of cross-platform
Java development. Like explicitly setting the bounds of a control. Though, I
must admit that having the default color of a button being black is unusual.
This might be related to the theme of the Linux desktop. I don't know for
sure. But you might want to check the java.sun.com website.

Paul Franz


---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]


---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to