This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I found a simple pie-chart class on the web. It works fine in normal use. I added implements TableCellRenderer and used it as a CellRenderer but the pie charts don't show in the cells. (For simplicity, the chart isn't yet connected to any data.)
It tried changing paint to paintComponent but it made no difference.
I've followed it through with the debugger: getTableCellRendererComponent is being executed for the right column in the JTable and paint is being called for each cell.
I wouldn't join any Collection with an add() method that would accept me as a parameter