Dashboard > Groovy > ... > Cookbook Examples > Windows Look And Feel for groovyConsole
Windows Look And Feel for groovyConsole Log In | Sign Up   View a printable version of the current page.

Added by Alan Burlison , last edited by Paul King on Apr 28, 2007  (view change)
Labels: 
(None)

Add the following lines:

set JAVA_OPTS=%JAVA_OPTS% -Dswing.aatext=true
set JAVA_OPTS=%JAVA_OPTS% -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel

just after the line

if "%JAVA_OPTS%" == "" set JAVA_OPTS="-Xmx128m"

in groovyConsole.bat. The first line turns on text antialiasing and the second turns on the Windows Look And Feel. You can do the same in all the other .bat files as well. You may find the antialiasing doesn't improve the appearance of the fonts very much, in which case remove it.

Site running on a free Atlassian Confluence Open Source Project License granted to The Codehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.2 Build:#919 Nov 26, 2007) - Bug/feature request - Contact Administrators