aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes doBooking ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "doBooking ???" Watch "doBooking ???" New topic
Author

doBooking ???

Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
Hi all,
Am just asking for suggestions here.
What I have is when a user selects a flight and click the book button, a dialog pops up for user to enter the number of seats he wish to book.
Now, if he clicks the ok button... should I, I mean which is better...
(1) immediately close the booking dialog or
(2) wait until the booking is completed successfully before closing the dialog...(remember this might take time because of wait() implemented, assuming the worst case)
Suppose I choose to do the first way, (1), then what's the best way to inform user that the booking is successful... (1) pop up a message (2) show it in the status bar or (3) allow user to view his booking status in a different window which is shown when he click "My Bookings" button.
I am going for (3) as for now but suggestion to improve on this is appreciated.
Sarita
[ September 16, 2002: Message edited by: Sarita Gupta ]

There are no great people in this world, only great challenges which ordinary people rise to meet.
harcharan kanwal
Ranch Hand

Joined: Jul 02, 2001
Posts: 64
hi sarita,
After user enter the number of seats and press book button in the Booking Dialog,depending upon the availability of seats ,present a Message Dialog asking for permission from the user to book these seats in this flight ,after user click on yes ,close the Messsage Dialog and Booking Dialog.book the seats and show a message dialog for to confirm that one has book the seats in this flight and then press ok.That is what i am thinking to do.
any other ideas
harcharan
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

I'd either keep the original window up, until it is booked, show a Dialog saying it was booked, with an OK button, when OK is pressed both windows close.
In my case my Book buttona nd Passenger Textfield where on the amin screen, so I had only one pop-up window which showed success when complete.
I do not like #3 because of the extra JFrame needed.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
Hi Mark
Originally posted by Mark Spritzler:
I'd either keep the original window up, until it is booked, show a Dialog saying it was booked, with an OK button, when OK is pressed both windows close.

If I wait for succesful completion before closing the dialog, then i hv a problem of changing the cursor to 'hourglass' when booking is in process... I manage to change it after ok is clicked but as i move around the cursor to a different window it changes to an 'arrow' and remains as such even if i come back to the booking dialog.
Originally posted by Mark Spritzler:

In my case my Book buttona nd Passenger Textfield where on the amin screen, so I had only one pop-up window which showed success when complete.
I do not like #3 because of the extra JFrame needed.
Mark

Actually, with #3 am not comfortable either hence my posting...
So i suppose in ur ui had a search panel, booking panel and result panel... well, that's another way... will solve my problem...
Thanks

Sarita
[ September 16, 2002: Message edited by: Sarita Gupta ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Good Luck. I didn't have an hourglass on my submission and I got 20/20 on GUI, so maybe it's not necessary.
Mark
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
Originally posted by Mark Spritzler:
Good Luck. I didn't have an hourglass on my submission and I got 20/20 on GUI, so maybe it's not necessary.
Mark

Ok then if u say so and with ur score, i'm convinced that it's not necessary...
actually i hv completed the basic functionality was just having a second look to check if anything's missed out....
btw, another check should I handle frame resizing... currently its fixed. I mean would they take away points for that... pls advise since u'r done and over with...
Sarita
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
Never mind answering this, Mark, I got the answer from another posting of urs....
Anyways, thanks for dropping by and sharing ur opinion.
Sarita
[ September 17, 2002: Message edited by: Sarita Gupta ]
Jim Bedenbaugh
Ranch Hand

Joined: Nov 09, 2001
Posts: 171

btw, another check should I handle frame resizing... currently its fixed. I mean would they take away points for that... pls advise since u'r done and over with...

If you don't mind me jumping in here. . .
I would really recommend you not fix the frame size. You should really size the frame to be some proportion of the screen and then let the user adjust as they desire. If you think about it, the density of the graphics of a Mac user will be different from a Windows user - you could end up with a weird looking GUI on either.
Also, depending on the Layout manager you use, you will have to accomodate the flow of the components.
Of course, the only 2 points I had deducted were from my GUI, so I could be all wrong about this!


Regards,
Jim
SCJP, SCJD, SCWCD, SCEA Part I
Sarita Gupta
Ranch Hand

Joined: Aug 12, 2002
Posts: 43
Originally posted by Jim Bedenbaugh:

If you don't mind me jumping in here. . .

Not at all Jim, its good to hv pple sharing their opinion on my choice... why do u think i had this posting... only to help me improve
Thanks.
Sarita
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doBooking ???