File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing application font issue " Watch "Swing application font issue " New topic

Swing application font issue

Shreyas Rane

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)

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: 10768

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!]
I agree. Here's the link:
subject: Swing application font issue
It's not a secret anymore!