code: public void run() {
  
  		if (!initProxy()) {
  			// Check if we have been aborted
  			if (mode != OK_MODE)
  				return;
  			if (net_thread != Thread.currentThread())
  				return;
  
  			mode = COMMAND_MODE;
  			warning_label.setText("Look up failed.");
  			warning_label.invalidate();
  			return;
  		}
  
  		// System.out.println("Done!");
  		while (!warning_dialog.isShowing())
  			; /* do nothing */
  		;
  
  		warning_dialog.dispose();
  		// dispose(); //End Dialog
  	}
docs: Resolves proxy address in other thread, to avoid annoying blocking in GUI
  thread.