JFreeChart « JFrame « Java Swing Q&A





1. How to add ChartFrame (JFreeChart library) to JFrame(javax.swing library)?    stackoverflow.com

I can't directly add ChartFrame object to my Jframe object with .add(Component) method. And it's not possible to cast from ChartFrame to JComponent. Casting ChartFrame to Component from java.awt library is ...

2. Closing jfreechart swing window closing down the whole application    stackoverflow.com

I have integrated this Jfreechart Bar Demo with my swing application. I have put the following code in the action performed method of a button, this code was previously in ...

3. XYPlot won't release from memory after closing the JFrame    jfree.org

XYPlot won't release from memory after closing the JFrame by metalzo Fri Jan 19, 2007 3:25 am Hi guys, I've searched endlessly about this issue and have tried multiple things (custom window listeners, setting everything to null, clearing and disposing everything, etc.) and I'm still coming up blank. Basically the program I have takes a bunch of data from a ...

4. Closing and disposing a JFrame and ChartPanel    jfree.org

In my application, the user can create and use multiple charts simultaneously. Currently, each chart is in its own JFrame with DISPOSE_ON_CLOSE set as its default close action. When closing and disposing of a JFrame and ChartPanel, is a call to dispose() sufficient to free up all resources, listeners, etc, or should I handle all the calls to components (such as ...

5. addng a jfreechart to an existing jframe    jfree.org

hello, my question has to do with netbeans and jfreechart. Does anyone knows how to insert to an jframe that it is created with netbeans a freechart? I ahve tried to create a different class and just a freechart object but with no luck. I don't get any error message but i don't see the chart(bar chart). my new class what ...

6. Setting labelPaint, resizing a JFrame, RemoveLegend() bug?    jfree.org

Setting labelPaint, resizing a JFrame, RemoveLegend() bug? by Siniz Tue Aug 05, 2008 2:41 pm I've got three questions, as stated in the topic. I know I've been posting quite a few questions recently and I apologize for that. I'll try to balance it out by helping some people in some posts, since I've got some experience with JFreeChart now. ...

7. How to generate chart image without invoking JFrame    jfree.org

JFreeChart jfreechart = createChart(dataset,title,avg_p_value); ChartPanel chartPanel = new ChartPanel(jfreechart); chartPanel.setPreferredSize(new java.awt.Dimension(635, 405)); chartPanel.setMouseZoomable(true, false); setContentPane(chartPanel);

8. Adding a JFreeChart to JFrame    jfree.org

Hello. I read the FAQ and "how to ask a question" and although this seems like it should be very straightforward, I have tried everything and I simply cannot add my chart to a (particular) jframe and I need help. I am new to JFreeChart, I've been toying with it for about a week. I took the bar chart demo 1 ...

9. how to put JFreeChart INSIDE a JFrame?    jfree.org

right now, i only know how to the JFreeChart uses the whole JFrame to display the chart(s). is there a way to put it inside a JFrame (or JPanel, or whatever) so that my controls for the JFrame will still be there? to clarify, i have a few controllers for the chart... JTextField, JCheckBox, etc.. but after drawing the JFreeChart, they ...