• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Gui layout

 
Pervez Ahmed
Greenhorn
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!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac 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.
"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
 
Daniela Ch
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • 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
 
Jawad Kakar
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
Jawad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic