File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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,
 
 
subject: JTable selection problem
 
Similar Threads
Switch Selection between 2 JTable?
How to change the colour of an JTable Cell dynamically
Please Help! JTable and TableCellRenderer color problem
TableCellRenderer setBackground of selected cell not working
JTable row and cell selection