How to draw an optional border around a JTable row?
How would I go about drawing a border around a row in a JTable? The default behaviour is cell based, I don't want to see the cell borders but I do want an optional border around a row. I have been able to make the cell borders disappear but have not been able to figure out how to get a border around the entire row.
At the moment I am considering providing custom cell renderers to draw the top and bottom borders and depending on the column draw either the left or right border. In other words draw the border in parts.
I don't like this solution and am wondering if there is a better easier way...