A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
canerandagio
- Posts: 8
- Joined: Thu Feb 07, 2019 5:49 pm
- antibot: No, of course not.
Post
by canerandagio » Thu Feb 07, 2019 5:52 pm
I got error The method setContentPane(ChartPanel) is undefined for the type registro_spesa
I have /home/andrea/java/jfreechart-1.0.19/lib/jfreechart-1.0.19.jar imported in my project
-
canerandagio
- Posts: 8
- Joined: Thu Feb 07, 2019 5:49 pm
- antibot: No, of course not.
Post
by canerandagio » Fri Feb 08, 2019 6:54 pm
I've checked, i have both jfreechart-1.0.19.jar and jcommon-1.0.23.jar
are there others solutions?
-
canerandagio
- Posts: 8
- Joined: Thu Feb 07, 2019 5:49 pm
- antibot: No, of course not.
Post
by canerandagio » Fri Feb 08, 2019 7:36 pm
The most recent version i found is 1.0.19
-
John Matthews
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Post
by John Matthews » Sat Feb 09, 2019 10:16 am
You can test your existing version like this:
Code: Select all
$ cd /jfreechart/lib
$ java -cp jfreechart-1.0.19.jar:jcommon-1.0.23.jar org.jfree.chart.demo.BarChartDemo1
The current release is cited
here.
-
canerandagio
- Posts: 8
- Joined: Thu Feb 07, 2019 5:49 pm
- antibot: No, of course not.
Post
by canerandagio » Sat Feb 09, 2019 6:44 pm
Ok thanks, i ll try on monday
-
John Matthews
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Post
by John Matthews » Tue Feb 12, 2019 1:04 pm
I cited examples using
org.jfree.chart.ui.ApplicationFrame, and you mention
org.jfree.chart.ChartFrame; both are subclasses of
javax.swing.JFrame, which provides
setContentPane(). When using either, be sure to construct and manipulate Swing GUI objects _only_ on the
event dispatch thread.