Good afternoon,
I want to add my charts to a Jpanel. How to proced? Many thanks in advance.
Nestor
Adding FreeChart to JPanel?
-
- Posts: 30
- Joined: Thu Jun 18, 2015 5:42 pm
- antibot: No, of course not.
Re: Adding FreeChart to JPanel?
Add your chart to a chartPanel and then add the chartPanel to the JPanel.
ChartPanel chartPanel= new ChartPanel(chart);
JPanel panel = new JPanel();
panel .add(chartPanel);
ChartPanel chartPanel= new ChartPanel(chart);
JPanel panel = new JPanel();
panel .add(chartPanel);
Re: Adding FreeChart to JPanel?
Many thanks. It is ok now.