I am using Netbeans 7.0 with JDK6 under Windows 7 to develop the user interface of my Java application. I apply the look of the system. But it looks the way I want it on Windows, but it differs from MacOS and, even worse, it looks different in different window managers on Linux (LXDE, GNOME, KDE, XFCE).
In different ways, I mean fonts and their size. On Windows, if the label looks like "v 1.23", it looks like "v ..." in other OSs, because the fonts are getting bigger in this OS, and JLabel does not have enough space to display. This happens in several places.
I do not want to increase the width of the label. I want the label to look the same at this given width in all OSs. By default, Netbeans uses the Tahoma 11pt font on my computer. I think it is not available in all OSs, so other OSs use a different font.
Is Arial a common font?
Should I change the font of each element to Arial manually? Or any other options?
java user-interface swing netbeans
Vigneshwaran
source share