//wcc.setProxyType(proxyType);
// write out the user configuration
//WonderlandConfigUtil.writeUserConfig(wcc);
NetworkAddress na = null;
// store the network preferences
Object selectedItem = ipAddressComboBox.getSelectedItem();
if (selectedItem instanceof String) {
String ipAddress = (String) selectedItem;
try {
InetAddress ia = InetAddress.getByName(ipAddress);
na = new NetworkAddress("", ia);
} catch (UnknownHostException e) {
System.out.println("Unknown host: " + ipAddress);
}
} else {
na = (NetworkAddress) selectedItem;