aspose file tools
The moose likes Applets and the fly likes Adding a Barchart to an Applet using JFreeChart Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Adding a Barchart to an Applet using JFreeChart" Watch "Adding a Barchart to an Applet using JFreeChart" New topic
Author

Adding a Barchart to an Applet using JFreeChart

Teja Venkat
Greenhorn

Joined: Oct 30, 2012
Posts: 27
Hai everyone I had written code for showing a bar chart in an applet the code is given below:


I am getting blank screen on executing this code.. Please help me sort out this problem
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 372
You should not be overriding the paint() method for this. In the init() method you should be creating the JFreeChart, constructing a ChartPanel using the created JFreeChart and adding the ChartPanel as a component to the JApplet component tree - probably the JApplet content pane.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Adding a Barchart to an Applet using JFreeChart
 
Similar Threads
Anybody used JFreeCharts?
jfreeChart
running applet through JSP
problem with jfreechart
showing applet embedded in jsp