Results 1 to 2 of 2
Thread: JFreeChart Problems
- 02-15-2012, 09:40 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 27
- Rep Power
- 0
JFreeChart Problems
I am trying to use JFreeChart to create charts obviously. JFreeChart come with ChartFrame and ChartPanel.
I have a class to create the chart itself then in another class i have ChartPanel and add that to a normal JPanel this works so far
by using :
my problem is that when i click the button an try to change the chart displaying it won't do anything i can't think it would be about the class that creates the chart it would be the method of displaying.Java Code:ChartPanel chartsPanels = new ChartPanel(charts); GroupLayout mainPanelLayout = new GroupLayout(chartPanel); chartPanel.setLayout(mainPanelLayout); mainPanelLayout.setAutoCreateContainerGaps(true); mainPanelLayout.setAutoCreateGaps(true); GroupLayout.SequentialGroup hGroup = mainPanelLayout.createSequentialGroup(); hGroup.addComponent(chartsPanels); mainPanelLayout.setHorizontalGroup(hGroup); GroupLayout.SequentialGroup vGroup = mainPanelLayout.createSequentialGroup(); vGroup.addComponent(chartsPanels); mainPanelLayout.setVerticalGroup(vGroup);
- 02-15-2012, 09:59 PM #2
Similar Threads
-
JFreeChart 1.0.14
By java software in forum Java SoftwareReplies: 1Last Post: 08-10-2012, 07:46 AM -
Ask to Jfreechart
By jin-beom Jeong in forum New To JavaReplies: 0Last Post: 07-23-2011, 08:47 AM -
JFreeChart help
By lowlyintern in forum Advanced JavaReplies: 8Last Post: 06-15-2011, 04:30 PM -
Jfreechart
By aaruviswa in forum Web FrameworksReplies: 2Last Post: 03-17-2011, 06:51 AM -
JFreeChart 1.0.11
By Java Tip in forum Java SoftwareReplies: 0Last Post: 09-26-2008, 07:52 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks