Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Menu vs. TextField for search Criteria on the GUI

 
christy smile
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • 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
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • 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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic