Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

moving JEditorPane in applet: thread problem  RSS feed

 
Mark Vermeersch
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm making an applet that displays a JEditorPane. The location of the textPane should be changed every 500ms. I did this with a "SlideShow" Thread, as follows:




I used 2 "sleep" commands: the first one is just for waiting for user input. The second one should make the textPane display just for 500mson a certain location. But the problem is the textPane is only shown for about one frame at the desired location, and then jumps to its default location to stay there the rest of the 500ms.
Does anyone know what the problem could be?? I've programmed this as an application and it worked fine. Do applets have difficulties with threads??

Thanks anyway
Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!