Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable selection problem

 
aymane chetibi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here's a simple example of highlighting the row for anyone aged between 20 and 50

 
aymane chetibi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic