I created a Bar Chart and would like to add it to a JTabbedPane. However, when I run the line: pane.addTab(tabTitle, chart); I get an error: The method addTab(String, Component) in the type JTabbedPane is not applicable for the
arguments (String, JFreeChart)
How can I add a chart to a panel? I can't seem to find the answer in the Developer Guide.
thanks
Adding a chart to a panel
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Re: Adding a chart to a panel
Add the JFreeChart to a ChartPanel and add the ChartPanel to the JTabbedPane.dmacleod wrote:How can I add a chart to a panel? I can't seem to find the answer in the Developer Guide.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA