Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Gui layout

Posts: 19
  • Mark post as helpful
  • send pies
  • 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!
Posts: 17346
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • 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.

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.
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
merry christmas
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • 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
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic