Tuesday, March 8, 2011

JPUI - Simply useful

JPUI is a rather simple java properties viewer and editor. It allows you to see and modify the properties persisted by Java applications. Here's a screenshot to save me some breadth



And now about a rather unusual use of this tool.

Font rendering is a lot better now on Linux than it was few years ago. Unfortunately font rendering in/for Swing applications still looks poor. In order to improve things people launch such applications using special flags, like:

java -Dswing.aatext=true -Dawt.useSystemAAFontSettings=on .... 
But doing that for each application in part is booooooring! If only there would have been a way to set those properties system-wide... Well there is!

sudo java -jar jpui.jar 
then create under System a new node swing and then create under swing a new attribute aatext and set it to true. And then do the same for -Dawt.useSystemAAFontSettings=on
 

You need to be root because (at least on Ubuntu and for latest, straight from Oracle, Java) the preferences are saved under /etc/.java/.systemPrefs/.


Enjoy!

No comments:

Post a Comment