PDA

Click to See Complete Forum and Search --> : Similar to VB's Doevents...


Nove
Jun 26th, 2005, 08:49 PM
I have a continuous loop running, that seems to be hindering the loading of my GUI, and will probably hinder some more stuff. Anything in Java similar to VB's Doevents to let other processes catch up?

Dillinger4
Jun 26th, 2005, 09:05 PM
Create a separate process.

System_Error
Jun 27th, 2005, 09:48 AM
You MIGHT be able to create a couple of threads and use the wait() method to allow a selected thread to finish or catch up...Although thread execution is not guranteed, so this might not be such a great idea.

oceanebelle
Jun 27th, 2005, 11:25 PM
You might want to read on Worker Threads that is in the JAVA Tutorial. :) .. It solved my prob. :)... and they already have a Worker Abstract Class so u can just use that one. ;)

oceanebelle
Jun 27th, 2005, 11:30 PM
You MIGHT be able to create a couple of threads and use the wait() method to allow a selected thread to finish or catch up...Although thread execution is not guranteed, so this might not be such a great idea.

Swing Worker Class is basically a thread ehehe.. I don't want to ge deep into detail 'cause I haven't used it for a very long time.. but in the JAVA Tutorial it's fairly well documented. so I guess that one is safe... u'll just have to get used to it though. :)

oceanebelle
Jun 27th, 2005, 11:33 PM
Here is the link on the Swing Worker Class (http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html)