aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTable selection problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable selection problem" Watch "JTable selection problem" New topic
Author

JTable selection problem

aymane chetibi
Ranch Hand

Joined: Apr 12, 2006
Posts: 175
Hello all,
please help me with that...

I want the selection in my JTable to select entire rows (not only one cell)

My code is as follows:

and my CellRenderer look like this:

thanks a looooooooooooooooooooooooooooooooooooooooooot for your help.
regards,
aymane chetibi
Ranch Hand

Joined: Apr 12, 2006
Posts: 175
Please any one help me with that ???
I just want to see the whole raw of a JTable selected (not just the borders of a cell).

thanks a lot!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
here's a simple example of highlighting the row for anyone aged between 20 and 50

aymane chetibi
Ranch Hand

Joined: Apr 12, 2006
Posts: 175
thanks a lot.
but I mean when you click on a row (using the mouse) I want the row to be selected not just the cell on which you have clicked.


thanks a lot.
regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable selection problem