• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems in GUI

 
kevin chang
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I almost finish my programme and in testing recently, but I got some problems confused.
1. when I use a client booking a ticket and lock a record, is it right that another client just waiting in a Thread and nothing else we could do in another client (for example: book another ticket or exit the programme).
2.Do we need an AboutDialog to show something in that !
any comments would be appreciate! thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2. Not really necessary.
1. If you really want to allow the user to do other things while a booking is taking place, You can spawn a seperate thread for the booking and let the GUI thread continue. There are actual classes and such for Swing to handle this. Event Dispatching is where you want to look at to figure out how to set your booking off on a seperate thread.
You can ssearch this forum and find many posts on this too.
Mark
 
kevin chang
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi mark
After seeing lots of posts, i am considering about "must I use MultiThreads in GUI/Lock with Event Dispatching ". things seem don't necessary, cause it will be very complecatied in GUI. can I change the GUI into "readrecord->popup dialog->input seats number->comfirm->lock->modify->unlock" . in some way, it can be avoid MultiThread in GUI!
thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can have the GUI take those steps in booking. It will meet the requirements.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic