Hi,
Can anybody tell me, is it possible to add a Swing button to the XYSeries Chart or DefaultCategoryDataset ChartPanel. If yes then how????
Can I add a Swing Component JButton to the XYSeries chart
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Can I add a Swing Component JButton to the XYSeries cha
You are mixing up a lot of classes there, without (I think) understanding what is really going on. In general, no, you can't add a JButton to a chart. But the ChartPanel class is derived from Swing's JPanel, so you can arrange buttons and charts in the same user interface using a layout manager. Perhaps that is what you mean?ashutosh wrote:Can anybody tell me, is it possible to add a Swing button to the XYSeries Chart or DefaultCategoryDataset ChartPanel. If yes then how????
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

