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;
}
GrAudio edizione delle 15:30 del 3 febbraio
-
GrAudio edizione delle 15:30 del 3 febbraio
Canali: Vercelli
5 ore fa


Nessun commento:
Posta un commento