• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

thoughts on what to do when booking...

 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wondering what people have done in the past when a flight was booking...
1) Changed the status bar text
2) Popup a modal dialog and close it when done booking
3) It's not worth the hassle
4) Others?
I like 2 personally... anyone have any thoughts on this?
Thanks,
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm showing a JDialogPanel, thanking them for booking and telling to make a new search. (or displaying an error message if an error occured while booking.
If booking succeeds i obviously change the model and the different views.
 
Robin Underwood
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nate, I did option 2. My confirmation dialog recapped the chosen flight info and allowed selection of the number of seats. Then I used a JOptionPane to let the user know whether or not the booking was successful.
[ July 30, 2002: Message edited by: Robin Underwood ]
 
Gosling Gong
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robin, I'd like to know when your JOptionPane shows, will your confirm booking dialog disappear?
did you do the booking in your confirm booking dialog?
 
Robin Underwood
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robin, I'd like to know when your JOptionPane shows,
will your confirm booking dialog disappear?
did you do the booking
in your confirm booking dialog?

Yes, the confirm booking dialog will disappear before the JOptionPane shows.
In my MVC implementation, the Controller makes all the decisions. So the confirm booking dialog just displays a message (passed from the Controller), and allows selection of seats. The Controller will then ask the dialog whether OK or Cancel was pressed, and how many seats were selected. Then the Controller will ask the DataClient to book the flight.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic