In addition to what Ronald should about the controls. Especially, since not all native controls are created alike. When it comes to Fonts, just because you ask for a Font that is a certain size does not mean you will get it. It total depends on what is available remember not all platforms have scalable fonts. And of course, the characteristics of those Fonts are different between platforms also.
Paul Franz ----- Original Message ----- From: "Patrick Li" <[EMAIL PROTECTED]> Date: Mon, 10 Feb 2003 16:17:41 -0500 To: "jdjlist" <[EMAIL PROTECTED]> Subject: [jdjlist] RE: AWT components' platform dependency > Hi Paul, > > I understand what you said about differences on Fonts and I expect that. I also >agree that I should use layout managers. However, I always thought the size is >specified in terms of pixels, which should be uniform across all platforms, isn't it? >Let's talk about Choices in particular. If I set the size of a Choice box to 180x24, >then it should be 180 pixels wide and 24 pixels tall. I don't understand what text >fonts has to do with that. > > Thanks in advance > > Patrick > > -----Original Message----- > From: Paul Franz [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 10, 2003 4:02 PM > To: jdjlist > Subject: [jdjlist] RE: AWT components' platform dependency > > > 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 > > --- > You are currently subscribed to jdjlist as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Meet Singles http://corp.mail.com/lavalife --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
