Results 1 to 6 of 6

Thread: Similar to VB's Doevents...

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Similar to VB's Doevents...

    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?

  2. #2

  3. #3
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Similar to VB's Doevents...

    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.

  4. #4
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Similar to VB's Doevents...

    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.

  5. #5
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Similar to VB's Doevents...

    Quote Originally Posted by System_Error
    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.

  6. #6
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Similar to VB's Doevents...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width