This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 10172
    
    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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing application font issue
 
Similar Threads
JSpinner Font help.
Cannot able to start the Admin Web console of Glassfish v3.1
ANT - and was unexpected at this time.
OutOfMemoryError starting Jetty server