JTable row selection painting

I am using a simple JTable to display a grid of information. When I select a row, the highlighting of the row causes a lot of unnecessary painting, resulting in annoying flickering of the component. Has anyone found a way to have JTable highlight in a more intelligent manner?
[290 byte] By [AddessoM] at [2007-9-26 2:22:22]
# 1

One thing I have done is replace the selection model. If my table only requires single selection, replacing DefaultListSelectionModel with another class that does not have the overhead of multiple selection has made a big difference in performance.

I have code from the book that will do this - email me if you want it.

Mitch Goldstein

Author, Hardcore JFC (Cambridge Univ Press)

mdgoldstein@hotmail.com

mitchg at 2007-6-29 9:28:52 > top of Java-index,Archived Forums,Swing...