This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi folks, I'm trying to write my own cell renderer so that I can highlight the tableRow the user has doubleclicked with a different color than the row that was clicked just once. But it just won't work. Can you please help me ? I wrote a DoubleClickTable that extends JTable. I added a MouseListener that registers the number of the row that the user has doubleclicked. There can not be more than one row doubleclicked at a time. This works fine. Then a added an inner class as follows :
In DoubleClickTable I override getCellRenderer() :
where rowRenderer an instance is of my inner class TableRowRenderer Thanks. A