diff --git a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/GTKDefaults.groovy b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/GTKDefaults.groovy index 75301552330..16c88fbc797 100644 --- a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/GTKDefaults.groovy +++ b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/GTKDefaults.groovy @@ -18,13 +18,14 @@ */ package groovy.console.ui.view +import groovy.console.ui.Console import javax.swing.text.StyleConstants import javax.swing.text.StyleContext import java.util.prefs.Preferences build(Defaults) -def prefs = Preferences.userNodeForPackage(groovy.console.ui.Console) +def prefs = Preferences.userNodeForPackage(Console) def fontFamily = prefs.get("fontName", "DejaVu Sans Mono") // change font to DejaVu Sans Mono, much clearer diff --git a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/WindowsDefaults.groovy b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/WindowsDefaults.groovy index 6261916c8c7..ccb5c12ed3f 100644 --- a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/WindowsDefaults.groovy +++ b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/view/WindowsDefaults.groovy @@ -18,13 +18,15 @@ */ package groovy.console.ui.view +import groovy.console.ui.Console + import javax.swing.text.StyleConstants import javax.swing.text.StyleContext import java.util.prefs.Preferences build(Defaults) -def prefs = Preferences.userNodeForPackage(groovy.console.ui.Console) +def prefs = Preferences.userNodeForPackage(Console) def fontFamily = prefs.get("fontName", "Consolas") // change fonts for vista