I'm fairly new to Java and I've been trying to put a JFreeChart in a JPanel. I've finished the tutorial exercises where you generate a simple chart (with its own application window):
TimeSeriesChartDemo1
However I'm working on a larger group project that requires me to put the chart to be in a JPanel rather than its own window. The problem is I have no idea how to move from here, I also do not have the NetBeans IDE.
- What do I have to put in
initComponents()to initialize the JPanel? - Do I still have two files
JFreeChartDemo.javaandNetBeansGUI.javaor is it all in one file?
If more information is needed please comment below.
For reference, I've cited a generic XYPlot example:
- API:
TimeSeriesChartDemo1 - Source:
TimeSeriesChartDemo1
