• Post Reply Bookmark Topic Watch Topic
  • New Topic

repaint(long) doesn't work for me

 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I'm doing a long computational process and it calls a panel's repaint(long) method. After I call that method I do a system output and that works, but the panel doesn't repaing until after the computation is over. What's more, I've notices that java doesn't complete repaints (like when I resize the window) until after the computation is done.
What can I do?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you considered running the computation in its own thread?
 
Paul Bailey
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did that and now it is working!
Thanks a lot!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!