• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Gui layout

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all!
I just started the assignment a couple days ago and had some questions regarding the GUI layout. I'm pretty sure the user should be given the option to find a flight using ALL the criteria,i.e. can do a find based on origin, destination, price, and duration. Is this true??
If this is the case, are there any recommendations for a simple Gui layout...or will I need 9 different JComboBoxes(1 for each field)?
Any help is appreciated...thanks!
 
ranger
Posts: 17347
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
In the instructions.html. It is a little unclear as to the minimum fields necessary to search.

The user should be able to select the origin and destination of flights, and the display should update to show only flights that satisfy those criteria. The user must be able to describe enter the string value "any" for the origin, destination, or both, so as to implement a wildcard-like feature.


Is one statement, which makes you need at least origin and destination a must.
Then it also states

For example, the following argument string would select all records describing flights by the SpeedyAir carrier that originate in San Francisco.
"Carrier='SpeedyAir',Origin='SFO'"


In this example Carrier is also there. Here is where the confusion comes in. In the first statement carrier is not included, but here it is.
My take is to also include carrier.
Mark
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I think that by that they meant that the criteriaFind() should be generic (able to accept searchs that include carriers, etc) but in the GUI they only want to allow the user to search by origin airports and destinations...
/Daniela
merry christmas
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is how I have it.
There are two combo boxes one is for the origin and the other is for the destination with "any" value hard coded.
A check box titled "advance search" is also provided, if the box is checked a textfield become editable so the user can enter the search string as fieldName1 = Value2, fiedName2 = Value2 ... etc.
Thank you
Jawad
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic