• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Updating a Thread variable.

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ladies n Gents,

A bit of help please.

I have a gui which contains a bunch of buttons. Each button corresponds to a process that I am monitoring. When a button is clicked, I need to display any messages pertaining to that process that I have. When an another button in clicked, I abandon the previous process and display updates for the another process.

My initial design was to have one thread which will display message for all the processes. Whenever a different button is clicked, I will update a variable in the thread to indicate it to get the update for a different process. This however, is not working, the thread starts and runs fine for the first click but doesn't seem to get notified when the second button is clicked.




Any Ideas, links would be appreciated.

Cheers
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interrupting the thread may be helpful in this scenario
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic