import java.util.Date; public class Wait extends Thread { // Warten auf beliebigen Thread per join // Zur Erklärung: Innerhalb der Gui würde ein join // die Gui anhalten, daher ausgegliedert in einen extra Thread // Thread th, th2; String logg; public void start(Thread t, Thread t2, String logg) { th = t; th2 = t2; this.logg = logg; super.start(); } public void run() { try {th.join();th = null;} catch(InterruptedException e) {} try {th2.join();th2 = null;Stammfenster.loglist.setText(Stammfenster.loglist.getText()+new Date()+": "+logg+"\n");} catch(InterruptedException e) {} } }