Win a copy of Functional Design and Architecture this week in the Functional programming forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Menu vs. TextField for search Criteria on the GUI

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, All,
I am redesigning my GUI for the project right now. The original design I had had the following component in the GUI:
(1) Origination city (combo box)
(2) Destination city (combo box)
(3) Search (button)
(4) Book (button)
(5) Rest (button)
(6) JTable that displays the result of the search.
Now, I am thinking about getting rid of (1)-(5) components and replace them with a menu, which includes the following menuitems:
(1) Search Route
(2) Book Flight
(3) Exit
When Search Route is selected, a pop up window will be displayed to allow the user to input the origination city, then a pop up window will be displayed for the destination city.
I am not sure which is a better way to do it. Any suggestion will be highly appreciated.
Thank you!
Christy
 
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stick to the design you have now. It is much better. Use popup dialog for confirmation and to display message to the user.
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, stick to the origianl design. Except what is the Rest button for?
Mark
 
christy smile
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mark,
Reset is used to empty out the Destination and Origination boxes and display all the flight info in the JTable. Is it a good idea to keep it?
Thanks.
Christy
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually that is a nice feature. I didn't think of a reset, I just figured they would select different criteria. But that's fine to have.
Mark
 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by christy smile:
Hi, All,
I am redesigning my GUI for the project right now. The original design I had had the following component in the GUI:
(1) Origination city (combo box)
(2) Destination city (combo box)
(3) Search (button)
(4) Book (button)
(5) Rest (button)
(6) JTable that displays the result of the search.
Now, I am thinking about getting rid of (1)-(5) components and replace them with a menu, which includes the following menuitems:
(1) Search Route
(2) Book Flight
(3) Exit
When Search Route is selected, a pop up window will be displayed to allow the user to input the origination city, then a pop up window will be displayed for the destination city.
I am not sure which is a better way to do it. Any suggestion will be highly appreciated.
Thank you!
Christy



About the combo boxes... should they be hard-coded or dynamic from some sort of Set Collection of the names?
Thanks!
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nate, in my Facade class I had methods that would get the "names" from the Data files, and I would use the Array returned to fill in the JComboBoxes.
Mark
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic