JTable vs JTextField - which to use for creating "Search" screen
I have a work project that needs a GUI for users to input their search criteria that the program will create the database search queries from. Our search GUI needs the capability for multiple search criteria under any particular field.
I know that JTables are used for displaying the data returned from a database. Could a JTable also be used as an interface to give users a place to input their search criteria? I am stuck on whether I should use a JTable with headings such as "First Name", "Last Name", "SomeSearchable Field" , and then retrieving the users input from each row/column to create the database queries. (columns in same row would be "and"s / each row would be "or"s)
OR Would it be better to use JTextFields and JLabels and lay them out using GridLayout to create the database queries??
OR ??? What have people done/used??
I've viewed other websites that have user search interfaces, but I'm still not sure which would be best.
Thanks in advance! Chris