• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI problem

 
Saraswathy Krishnamoorth
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two buttons Book Flight and Cancel in the MakeReservation Tab. If the user first clicks BookFlight button, then booking starts if the requested number of seats are avaialable. While this process is going on, (i.e before the confirmation dialog is displayed), if the user clicks Cancel button again what should be done. Should the reservation be canceled or left unaltered as he has already clicked BookFlight button.
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

While this process is going on, (i.e before the confirmation dialog is displayed), if the user clicks Cancel button again what should be done. Should the reservation be canceled or left unaltered as he has already clicked BookFlight button.

I recommend that you don't implement "Cancel", -- it creates a lot of questions. Once you invoke a method on the remote object, the server is in control. If you happen to click "cancel" when the booking is done, you will need to effectively "unbook" the flight. Too much trouble.
Eugene.
 
Saraswathy Krishnamoorth
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay I will remove the cancel button. Thanks Eugene.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic