aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes GUI problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "GUI problem" Watch "GUI problem" New topic
Author

GUI problem

Saraswathy Krishnamoorth
Ranch Hand

Joined: Mar 07, 2003
Posts: 73
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

Joined: Oct 08, 2001
Posts: 2937

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

Joined: Mar 07, 2003
Posts: 73
Okay I will remove the cancel button. Thanks Eugene.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GUI problem