Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jTable question 1

Status
Not open for further replies.

tvrtko

Programmer
Nov 26, 2003
53
HR
How can I programmatically select row of jTable?

Thanks in advance
 
Code:
ListSelectionModel model = yourTable.getSelectionModel();
model.setSelectionInterval(startRow, endRow);

where startRow and endRow are the indexes of the required selection.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top