How to select the specific cell in Jtable?

Posted by Nitz on Stack Overflow See other posts from Stack Overflow or by Nitz
Published on 2010-05-24T09:43:06Z Indexed on 2010/05/24 12:11 UTC
Read the original article Hit count: 234

Filed under:
|

Hey guys
Now in my one jframe i have used two jtables with different data.
But now what i want is..
as soon as user select one cell on first table, then in second table, the cell next to selected cell of the first table should be selected.

means....
if user had selected the cell which is on
column - 3 and row - 1 [ first table cell position ]
then next table should automatically select the cell at
column - 4 and row - 1 [ second table cell position ]

i know how to get the selected row and column of jtable but i don't know how to set Select on jtable.

© Stack Overflow or respective owner

Related posts about java

Related posts about jtable