Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
 
Don't get me started about those stupid light bulbs.
 
subject: GUI problem
 
Similar Threads
FileDialog
More complicated Program
Cancel database query....
Returning Parameters from Javascript to Java
problem with file uploading