The org.jfree.chart.ChartPanel class registers itself with the chart it displays, and whenever the chart changes, the panel redraws itself.