i have a jtable and i want when selecting a cell to change the background for the whole row and the whole column of this cell (not to change the background of the cell only !), how to do so ?
please advise, thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve used the following to control color of a column. To see how to incorporate the current cell, look at
http://www.javaworld.com/javaworld/javaqa/2001-09/03-qa-0928-jtable.html