I'm progressing well with my assignment (B&S v2.1.2) and I'm implementing the user interface for searching.
The assignment specification says that
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
I was thinking abut having a a JTextField (or JComboBox, which stores search history) next to a search button. Searching with no text in the JTextField would return all records, entering a value into the JTextField would search on both the name and location fields (ie, if the value entered matches either the name OR location then the record is returned in the search results).
I'm not sure whether that would meet the requirement. The requirement states searching on name
and/or location.
The alternative would be to have a search dialog where the user could search on both fields independently. I think this is a bit clunkier for a user interface perspective though.
Anyone got any thoughts on this?