Kelly wrote:Any suggestions?
You don't actually say what is wrong with the display under FreeBSD. so...
If you don't specify a font, SWT will use the system default font. That can be quite different for different platforms. If you use a font on one platform that does not exist on another, you will end up with the default font on the other platform.
This is a common problem that has affected cross-platform GUI development since day one (I used to run into this building apps for Windows and OS/2 in the early '90's). A similiar problem occurs with internationalized apps that have very different string lengths depending on the language.
The general solution in the Java world is to use a layout manager that will adjust widget sizes based on font and string size. GridLayout under SWT is probably the best choice here. GroupLayout and FormLayout are also OK as long as you use widget-relative attachments. Whatever you do, avoid null layout or any layout that specifies a fixed widget size in pixels.