Posted by kazoobrewer
on November 17, 2008 at 10:44 AM PST
I'm having issues with the anti-aliasing of text in Java 6. Depending on the order in which I instantiate Swing components, change look and feel (to getSystemLookAndFeelClassName, in this case WindowsLookAndFeel), what have you, I'm getting either aliased (bad) or anti-aliased (good) text in my menus, buttons, etc.
I'm still sorting through some of the order, but I'd appreciate if anyone had pointers on how to look. Key findings so far:
1. It's sufficient to get anti-aliased text to put
before any other code. It's also sufficient to instantiate a JFrame before setting the Windows look and feel.
2. When the anti-aliased text is shown correctly, the system's UIDefaults contains an AATextInfoPropertyKey entry. When it's not shown, it doesn't.
Thanks much for any leads,