}
public void saveParam(Object obj) throws Exception {
OptionsParam optionsParam = (OptionsParam) obj;
ProxyParam proxyParam = optionsParam.getProxyParam();
int proxyPort = 0;
int reverseProxyHttpPort = 0;
int reverseProxyHttpsPort = 0;
try {
proxyPort = Integer.parseInt(txtProxyPort.getText());
} catch (NumberFormatException nfe) {
txtProxyPort.requestFocus();
throw new Exception("Invalid proxy port number.");
}
try {
reverseProxyHttpPort = Integer.parseInt(txtReverseProxyHttpPort.getText());
} catch (NumberFormatException nfe) {
txtReverseProxyHttpPort.requestFocus();
throw new Exception("Invalid reverse proxy port number.");
}
try {
reverseProxyHttpsPort = Integer.parseInt(txtReverseProxyHttpsPort.getText());
} catch (NumberFormatException nfe) {
txtReverseProxyHttpsPort.requestFocus();
throw new Exception("Invalid reverse proxy port number.");
}
proxyParam.setProxyIp(txtProxyIp.getText());
proxyParam.setProxyPort(proxyPort);
proxyParam.setReverseProxyIp(txtReverseProxyIp.getText());
proxyParam.setReverseProxyHttpPort(reverseProxyHttpPort);
proxyParam.setReverseProxyHttpsPort(reverseProxyHttpsPort);
proxyParam.setUseReverseProxy(getChkReverseProxy().isSelected());
}