• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multithreading  RSS feed

 
Tanya Fila
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i did this as an example, refering to it!!!
so i want an idea on the multitreading screen saver that extends JPanel






 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that the IDE forum is the best place to get an answer for this. I'll move it to the swing forum, you might have better luck there.
 
Rob Spoor
Sheriff
Posts: 21052
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Concurrency in Swing. I suggest you read it. It tells you that you should do any GUI related work on the Event Dispatcher Thread (EDT), and should not perform any long-taking actions (like sleeping!) on the EDT.

In this case a javax.swing.Timer would work just as well as the ExecutorService.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!