Selecting a row in a JTable

  • Follow


When I click on a cell, I'd like the whole row to be highlighted,
INCLUDING the selected cell. I've tried using the following code to no
avail:

setCellSelectionEnabled(false);
setColumnSelectionEnabled(false);
setRowSelectionEnabled(true);

Help would be much appreciated.

Prefer replies to tdk13@perfectsolve.com

Thanks.
0
Reply asd 5/13/2004 3:46:25 PM

use setRowSelectionInterval

Will
Author of JForm
http://jform.coderight.nl

asd@asd.com wrote in message news:<8t57a09067uruiiliv8ocjf3f1t0i7i2k0@4ax.com>...
> When I click on a cell, I'd like the whole row to be highlighted,
> INCLUDING the selected cell. I've tried using the following code to no
> avail:
> 
> setCellSelectionEnabled(false);
> setColumnSelectionEnabled(false);
> setRowSelectionEnabled(true);
> 
> Help would be much appreciated.
> 
> Prefer replies to tdk13@perfectsolve.com
> 
> Thanks.
0
Reply will 5/14/2004 5:45:49 AM


1 Replies
1075 Views

(page loaded in 0.124 seconds)

Similiar Articles:













7/22/2012 10:34:45 AM


Reply: