use JFormattedTextField instead of JTextField
+ made Config.init() private