updateControlStatus();
}
void applyChanges(SquirrelPreferences prefs)
{
final ProxySettings proxySettings = new ProxySettings();
proxySettings.setHttpUseProxy(_httpUseProxyChk.isSelected());
proxySettings.setHttpProxyServer(_httpProxyServer.getText());
proxySettings.setHttpProxyPort(_httpProxyPort.getText());
proxySettings.setHttpNonProxyHosts(_httpNonProxyHosts.getText());
proxySettings.setHttpProxyUser(_httpProxyUser.getText());
String password = new String(_httpProxyPassword.getPassword());
proxySettings.setHttpProxyPassword(password);
proxySettings.setSocksUseProxy(_socksUseProxyChk.isSelected());
proxySettings.setSocksProxyServer(_socksProxyServer.getText());
proxySettings.setSocksProxyPort(_socksProxyPort.getText());
prefs.setProxySettings(proxySettings);
}