public void finish(String key, int surc, String tmp) { int action = surc; System.out.println("Action: " + action);
public void finish(String key, String fail) { int action = 0;
  public void finish(String key, int surc, String tmp) {  	int action = surc;  	System.out.println("Action: " + action);  	this.button.setText("Schlie\u00DFen");  	if (conf.setKey(key)) {  	  this.lab.setText("Fertig!");	}	else {		this.lab.setText("Es ist ein Fehler aufgetreten.");		action = -5;		Base.LogThis("setKey() == false");	}	  	  	if (action == 1 && tmp != null) {  	    Base.showBox(parent, Define.getFailedEvent() + " " + tmp, 2);  	}  	else if (action == -2) Base.showBox(parent, Define.getWrongUser(), 2);  	else if (action == -3) Base.showBox(parent, Define.getNoDBCon(), 2);  	else if (action == -4) Base.showBox(parent, Define.getMiscFailure(), 2);  	else if (action == -5) Base.showBox(parent, Define.getNoCon(), 2);	  }