title: CardLayout with JFreeChart switching is not working
body: <p>I encounter some problems with JFreeChart, here I explained what I'm creating:<a href="https://stackoverflow.com/questions/13205251/random-errors-when-changing-series-using-jfreechart">Random errors when changing series using JFreeChart</a>. But now I have another related question. I have to <code>ChartPanel</code> in <code>CardLayout</code> to switch between the graphs when I click on tabbed pane. I've tried it with ordinary <code>JPanel</code> (<code>public class JPaintablePanel extends JPanel</code>. It's showing some button with different name depending on the tab), and it works well. But the same thing with <code>public class JPaintablePanel extends ChartPanel</code> is not working, it shows only one graph. Can you tell me how to force <code>ChartPanel</code> to switch, and preserve data?</p>
  
  <p><a href="http://pastebin.com/THuvGan5" rel="nofollow noreferrer">http://pastebin.com/THuvGan5</a> ChartPanel</p>
  
  <p><a href="http://pastebin.com/Br2swZiC" rel="nofollow noreferrer">http://pastebin.com/Br2swZiC</a> CardLayout</p>