To enable system wide swing antialiasing from inside Java program

D

Daniel Polansky

Since Java 1.5.0 it is possible to enable system wide swing
antialiasing by using the command line option

javaw -Dswing.aatext=true ...

I have tried to achieve the same from inside the Java application,
upon user demand, by

System.setProperty("swing.aatext","true");

without any success. Is there a working way to do that? Thanks.
 
A

anders.zommarin

Hi,

You have to set the property early on, before any SWING code has
executed. Otherwise it will not have any effect.

/AZ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top