You are not logged in.

#1 2005-03-16 21:53:51

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Java tip - anti-aliased fonts

Hi,

Something that bugs me with Java GUIs is that by default, Swing doesn't enable anti-aliased fonts. I've been seeking ways of correcting this, and have found the following setting: swing.aatext. You can toggle this on the command-line, e.g.,

java -Dswing.aatext=true YourSwingApp

I assume you could also do this inline with System.setProperty()

However, this *may* be a Java 1.5 only tip. Unfortuately, I no longer have java1.4 to try this out.

Hope some find this useful. And if you already knew this, why haven't you been publicising it mor?!? tongue

Offline

#2 2005-03-16 22:01:27

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Java tip - anti-aliased fonts

To be honest, I don't see any difference.

Offline

#3 2005-03-17 08:26:36

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: Java tip - anti-aliased fonts

LB06 wrote:

To be honest, I don't see any difference.

Oh, well, it's noticable on my system at least.

I have discovered that this tip is in fact java1.5 specific, so perhaps you're using an older JVM.

Offline

Board footer

Powered by FluxBB