Don't know Linux at all so I can't comment on that part, but the operating system does make a big difference. A couple AWT classes such as Component and Container are independant of the OS. Most if not all of the actual visual classes such as Checkbox, Choice, etc are thin wrappers around the native OS widgets so they are bound to look different.
Not sure about the choice horizontal problem, but it sounds like a layout issue. > -----Original Message----- > From: Patrick Li [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 07, 2003 9:07 AM > To: jdjlist > Subject: [jdjlist] AWT components' platform dependency > > > Hi, > > I am using AWT components like Choices, TextFields, > buttons, etc. in an applet. The appearance of these > components on Windows and Linux is so vast that the applet > can't be used in Linux while it is perfectly fine and > beautiful under Windows. Of course, I expect some variation > on appearance between the two, but some of these are > ridiculous. Maybe I am missing something here, but I will > raise a few examples below for your comments. > > 1) The nastiest one is the Choices. After I specified it's > bounds. The box displayed as expected under windows, but > under linux, the box stretches outside the applet boundary. > Rendering it impossible to manipulate. > 2) The text field in Linux cuts off the bottom half of the > text while it displays fine under windows. If I increases > the height of the box, then it looks ugly under windows. > 3) The button has a default color of black under linux > which is a bit unusual to say the least. > > Finally, I am using SUN's 1.4.1 JVM for both platforms. The > browser is Mosaic on linux and IE & Netscape under windows. > > Any helpful enlightenment is welcome! > > Patrick Li > --- --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
