remove ConfigDialog and add Java Preferences