Components are shown different on Win and Linux

Hi all,

Well, I will try to explain as best as I can.

I have a desktop application, developed with j2se 1.5 update 9. When I run it on Windows (XP Professional SP 4) and open a form, it's appearence is ok. When I run on Linux and open the same form, there are differences like:

- JFormattedTextField width is not enough to show data (and on Win it's correct).

- A JComboBox located at the most right side of the form exceed the limit of it's parent, a JInternalFrame. It just happens on Linux.

We use slackware 11 with kde 3.5, but it was happening with slackware 10/kde 3.4

Another detail is that all forms were designed on Windows.

What should I do to fix this problem ?

Thanks.

[739 byte] By [aboaventuraa] at [2007-11-26 14:56:53]
# 1

> What should I do to fix this problem ?

Fix it. Now you know why Java is known as the "write once, debug everywhere" language

This is a not uncommon problem. You could try changing your layout managers or their settings, or just commiting to have one version for windows and one for linux

>

> Thanks.

tjacobs01a at 2007-7-8 8:45:36 > top of Java-index,Desktop,Developing for the Desktop...
# 2
Ok. I will try to change design to find a solution that sound good even in Windows and Linux.Keep two codes, of for Linux and one for Windows is not in my plans. I believe that it's look for trouble.Thank you !
aboaventuraa at 2007-7-8 8:45:36 > top of Java-index,Desktop,Developing for the Desktop...