code: @SuppressWarnings("deprecation")
  	public Proxy getProxy(Proxy p) {
  		if (p != null) {
  			doInit(p);
  		}
  		mode = COMMAND_MODE;
  		pack();
  		show();
  		return proxy;
  	}
docs: Initialises dialog to given proxy and displays SOCKS configuartion
  dialog.
  <p>
  Returns initialised proxy object, or null if user cancels dialog by
  either pressing Cancel or closing the dialog window.