• 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!