| Author |
How to set focus on JTable
|
Narayanan Jayaraman
Ranch Hand
Joined: Apr 09, 2003
Posts: 52
|
|
|
After populating and displaying JTable how to set focus or highlight the first row in the table. ?Thanks
|
 |
Di Shoe
Greenhorn
Joined: Jun 20, 2003
Posts: 7
|
|
What you can do is put the table in a ScrollPane, then call: where the x in setValue(x) is the row # in the table. I hope this helps.
|
 |
Abhik Sarkar
Ranch Hand
Joined: Jun 14, 2003
Posts: 61
|
|
How about... Hope this helps, Abhik.
|
 |
Narayanan Jayaraman
Ranch Hand
Joined: Apr 09, 2003
Posts: 52
|
|
Thanks Abhik. It works fine.
|
 |
 |
|
|
subject: How to set focus on JTable
|
|
|