I am working on a fairly large Swing application (JPanels, JLabels, etc.), and I need to find out why text anti-aliasing (on JLabels, etc.) does not work.
As you know, anti-aliasing usually works automatically (with Java 1.6 anyway), i.e. when you create a simple Swing application (for example, only JPanel with JLabel on it), the text in JLabel will be smoothed out of the box. There is no need for System.setProperty("awt.useSystemAAFontSettings","on") and / or System.setProperty("swing.aatext", "true") .
But this application is different, it is not an antialias from the box, it is not an antialias with System.setProperty("awt.useSystemAAFontSettings","on") and / or System.setProperty("swing.aatext", "true") in main(String[] args) , and also not with -Dawt.useSystemAAFontSettings=on and / or -Dswing.aatext=true as VM arguments. I tried these and all the other offers that I could find on this site and on the Internet, but to no avail: this application simply does not smooth out, whatever I do or do not.
Now I have no options. So my questions are:
- What steps can I take to find out why anti-aliasing does not work?
- What properties should I check?
- What code should be tracked using the debugger?
- What circumstances can lead to antialiases not working?
Any ideas are welcome.
java antialiasing
Howard
source share