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?
Printable View
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?
Create a separate process.
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.
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. ;)
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. :)Quote:
Originally Posted by System_Error