I've created an applet and then added a JFreechart ChartPanel to it.
jContentPane.add(myChartPanel);
myChartPanel is a member variable of my applet
and I see the plot just fine. Then I change the chart by setting
the myChartPanel to a new ChartPanel
myChartPanel = ChartPanelCreator.getChartPanel();
but the chart does not refresh in my applet.
I've tried jContentPane.repaint(); but no...
Suggestions?
Andrew Thompson - 20 Apr 2007 02:42 GMT
...
>Suggestions?
- Don't practice GUI development in applets.
- Avoid applets until you are very experienced.
- Prefer web start launched applications to applets.
- Produce an SSCCE* that shows this behaviour
(preferably one that does not require JFreeChart to
show the effect you are seeing).
<http://www.physci.org/codes/sscce.html>

Signature
Andrew Thompson
http://www.athompson.info/andrew/