Select a row in Jtable
I have a situation where I have a screen which shows around 100 of record s.On this screen there is a search button ,if you specify the criterion and click on search it should highlight the record in screen with 100 of records.
Search button will fire a stored procedure and find one row,that row should be highlighted.How do I make the row highlighted depending on search results.
See ListSelectionModel (Java Platform SE 6)
Thanks for the reply.I will just get a record from the database .
I do not know the row number,how do I highlight in this case.Is it necessary to highlight with the row number?
Can I highlight based on the ID which is one column of the table.
Someone please help
So, is this a Swing question or JDBC?
Its swing as well ,I want to know that is there any way to find the row number or my stored procedure should return the row number