• Post Reply Bookmark Topic Watch Topic
  • New Topic

Repaint problem

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to repaint my gui, then perform some code...


But the code after it is completing first, and then it is repainting, which is not what I need.

I tried doing this...



But the same thing still happens, I don't know the best way to deal with this, can anyone help?

Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the painting happens in a different thread, so you might try to give other threads some time to work by calling Thread.sleep(100).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!