• Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock problem on GUI Urgent !!!

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
My Unlock method wait(10000) miliseconds and after that it will automatically unlock the locked record. But for that particular time period my GUI button kept pressed and no futher transaction can be take placed. Plz tell me the solution how to call lock and unlock method on client side while booking the seats.
Anurag Mishra
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When executing possibly time-consuming tasks in Swing, the use of a worker thread is recommended. See the Swing Tutorial's discussion of the subject.
- pETER
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!