• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

thoughts on what to do when booking...

 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
This tiny ad is suggesting that maybe she should go play in traffic.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic