Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI - has anyone used a JTable for search?

 
Adrian Muscalu
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don't have much experience with Swing but I was thinking that I could use an editable JTable to get the search criteria from user. It does look nice on top of the results JTable but I wanted to see what you ranchers think...

Thank you,
Adrian
 
Jason Moors
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adrian,

I'm not sure about another table on top for search criteria, I have seen user interfaces where the first row was editable for entering search criteria but I not sure this is the most user friendly design possible.

Using a table would only make sense if the user could search, enter criteria for each field, however you'll need to check your requirements but for my assignment I only search on name or location.

I would recommend using drop down lists or edit tests, which are more common/standard mechanisms for entering search criteria.

Regards
Jason
[ June 01, 2007: Message edited by: Jason Moors ]
 
Lucy Hummel
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adrian,

The search in the JTable would mean that you only see what is on the GUI side visible. Or how do you want to implement the stuff to search in the database?

I think the search requested by SUN should be done as a search in the database and not as a search in the JTable, but is up to you to do it.

Just claim why you prefer or offer a search in the JTable. If you give a reasonable explanation for your choice, Sun might go along with you and accept your solution.
 
Adrian Muscalu
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I apologize for the confusion. What I meant was to provide a second JTable that is editable and is used only to capture users's search criteria. The search goes against the database as usual and the results get displayed into the other JTable.

Thanks for answering,
Adrian
 
Lucy Hummel
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adrian,

A Second table?

That sounds complicated. How about keep it simple?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic