Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
while(ueberwacher.getBusy() && !(einzelnesObjekt.getInstance().getAborted()){
//irgendwas machen
}
Thread checkThread = new CheckStatus(selectedPlugin,this);
checkThread.start();
public class CheckStatus
extends Thread {
PluginInterface toCheck;
Gui parent;
public CheckStatus(PluginInterface pi, Gui p) {
toCheck = pi;
parent =p;
}
public void run() {
boolean hasStatus = toCheck.hasStatus();
while (toCheck.isBusy()) {
try {
Thread.sleep(1500);
if(hasStatus){
parent.getStatusArea().append(toCheck.getStatus()+"\n");
}
}
catch (Exception ex) {
System.out.println(ex.getMessage());
}
}
parent.abort();
}
}