This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Applets and the fly likes Adding a Barchart to an Applet using JFreeChart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
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
Bartender

Joined: Aug 27, 2012
Posts: 1166
    
  17

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Adding a Barchart to an Applet using JFreeChart
 
It's not a secret anymore!