Meaningless Drivel is fun!*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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,
 
jQuery in Action, 2nd edition
 
subject: JTable selection problem
 
Similar Threads
Please Help! JTable and TableCellRenderer color problem
How to change the colour of an JTable Cell dynamically
TableCellRenderer setBackground of selected cell not working
JTable row and cell selection
Switch Selection between 2 JTable?