• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic