Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes About booking GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "About booking GUI" Watch "About booking GUI" New topic
Author

About booking GUI

Jeff Song
Greenhorn

Joined: Nov 05, 2002
Posts: 27
Hi,All
What I want to ask is: If we attemp to book a flight which already be locked by another client.
What the current client GUI should look like? Standby or still active for other operations such as search or book another flight.
Is it not allow for GUI to freeze while the lock is work on?
In my way , my GUI will available for operation while the lock was blocked which means my client get the record control. But I wonder its right.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

Well Jeff, that's an interesting question. And it is one without a real answer. It all depends on what experience the users want against what you think is the safest and bug proof way. Meaning if you allow the user to continue while it is waiting for the lock, is there any data corruption that could possibly happen, thread control, etc.
While the record is being locked you can have a screen pop up that says "Currently Processing your Request, Please Wait". This is always nice to the users and is "User Friendly", an hourglass can also work, but not as user friendly.
It is up to you to decide, and to put your decision in your design.txt and explain your position.
To be honest, I did nothing, the user just waits.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Jeff Song
Greenhorn

Joined: Nov 05, 2002
Posts: 27
Hi,Mark,
Thank you very much for your response. The question confused me for a bit long time. But I think I have found the answer now.
Thanks again!
Adam Till
Ranch Hand

Joined: Oct 11, 2002
Posts: 41
Hi
So why did youre app do nothing when a booking was in progress? What reasons did you give (can I ask that?)?
Cheers


Adam Till<br />SCJP SCJD SCWCD
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17258
    
    6

Well, because it was in progress.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About booking GUI