Ecco come creare un background task con Netbeans - senza eventi:
public Task myMethod() {
Task mT = new myTask(DesktopApplication.getApplication());
ApplicationContext appC = Application.getInstance().getContext();
TaskMonitor tM = appC.getTaskMonitor();
TaskService tS = appC.getTaskService();
tS.execute(mT);
tM.setForegroundTask(mT);
return mT;
}
Allerta meteo arancione a Misterbianco: scuole chiuse
-
A causa del sensibile peggioramento delle condizioni meteorologiche e del
bollettino di allerta ARANCIONE diramato dalla Protezione Civile regionale,
l'Amm...
5 ore fa


Nessun commento:
Posta un commento