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 it advisable to use comboboxes for the origin and destination fields. I am currently using textfields for origin and destination. In this case the user is expected to type in the airport name. Is this OK? I mean I have seen people using comboboxes. But the instructions say that user MUST be able to describe enter....(what does describe enter here means?)...if using comboboxes u can only select but not type..AM I missing any thing here...
Or should I use Editable JComboBox???
[ September 01, 2002: Message edited by: Samual Harvey ]
Hope that helps,
I have a question. I am trying to bring in the sorted and unique list of origin and destination. Any ideas how should I do this. I have a vector source for my combo boxes.
I tried using HashSet but it does not work correctly. It removes some duplicates but not all. Is there origin/destination data in db.db different?
Originally posted by Samual Harvey:
[QB]I have a question. I am trying to bring in the sorted and unique list of origin and destination. Any ideas how should I do this. I have a vector source for my combo boxes.
I tried using HashSet but it does not work correctly. It removes some duplicates but not all.[QB]
I used a TreeSet to get my values for the combo box... it is sorted and a set so I get unique and sorted values. I just walked through the values of the db and tried to add every one, and since it was a set, it rejected duplicates... not the most elegant solution, but Sun did not seem to care
Originally posted by Nate Johnson:
I used a TreeSet...
Now I know you copied off my paper!