protected void readConfig(Configuration config) { listenersEnabled = false; try { useSsl.setSelected(config.getChild("ssl").getValueAsBoolean(false)); mailServer.setValue(config.getChild("smtp-host").getValue("localhost")); smtpPortField.setNumber(new Integer(config.getChild("smtp-port").getValueAsInteger(25))); username.setText(config.getChild("username").getValue("")); password.setText(config.getChild("password").getValue("")); } finally { listenersEnabled = true; } }