Search code examples
javauser-interfacenetbeansfontsfedora

How to retain Windows-like appearance of Java GUI in Fedora


I'm using Netbeans 6.7.1 on Windows. I created a Java application using Swing. When I run the same application in my Fedora Core OS, the appearance becomes dull, the fonts and the spacing change. How do I avoid this - as the GUI is of prime importance to my application.


Solution

  • Unfortunately, the various native themes are only guaranteed to be packaged with the JVMs they're shipped with.

    If you really want your gui to look the same across OSes, you really have 3 options:

    1. Use the cross-platform look and feel.
    2. If your clients all use Java 6u10 or newer, use the Nimbus look and feel.
    3. Use a third party look and feel, preferably one that extends the Synth look and feel like Nimbus does.