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

observers and threads  RSS feed

 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.

i just want to ask for ideas. i have swing components that observe via Observer while i have a class that does the publishing by calling the setControlName() method

when i use threads, i publish messages but my problem is that the public void update(Observable o, Object arg) method does not get called by all threads. i tried to place synchronized but the result is that the method does not get called instead.

any ideas how to go work this out? thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!