This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Swing application font issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing application font issue " Watch "Swing application font issue " New topic
Author

Swing application font issue

Shreyas Rane
Greenhorn

Joined: Apr 10, 2009
Posts: 16
I have developed a swing application, i have some issues with application font!!

My development environment :

OS : Fedora 13

Java Version :
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)

ISSUE :
On Fedora (my system) application font looks (normal) ok
but when i tried to run the same app on different OS : Ubuntu , the Font looked a bit bold than what it did on Fedora...

How can this be fixed?

Thanks in advance


Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10268
    
    8

Fonts, by default, are specified by the LAF. What LAF are you using?
Usually, it is a good idea to specify the System LAF so that your application feels more "native" to the end user, without you ever needing to change any code.
More about setting the LAF here


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Swing application font issue