07-29-2009, 08:09 PM
Hello,
I would like to select one precise element in a table (a JTable in fact but I think it's quite similar) and I don't know how to do it.
For example, if I have the table :
How can I select the name in "Column 2" which correspond to the line which contains 'k' in "Column 1" ?
Of course this line is not always the second.
Thanks in advance !
I would like to select one precise element in a table (a JTable in fact but I think it's quite similar) and I don't know how to do it.
For example, if I have the table :
Code:
Column 1 | Column 2
-----------------------
z | Name1
k | Name2
b | Name3
d | Name4
How can I select the name in "Column 2" which correspond to the line which contains 'k' in "Column 1" ?
Of course this line is not always the second.
Thanks in advance !