Try setting the "LookAndFeel" to the Metal (cross-platform) look-and-feel.
This should give you a consistant user interface on various platforms :
public static void setJavaLookAndFeel() {
try {
UIManager.setLookAndFeel
(UIManager.getCrossPlatformLookAndFeelClassName());
} catch(Exception e) {
System.out.println("Error setting Java LAF: " + e);
}
}
-- A.Kohler
--- "Chang, David T" <[EMAIL PROTECTED]> wrote:
> Sorry, Patrick, I do not work with AWT, so I cannot help you.
>
> David
> -----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]
>
>
> ---
> You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]