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 | 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
Ranch Hand

Joined: Aug 27, 2012
Posts: 1084
    
  10

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.
 
 
subject: Adding a Barchart to an Applet using JFreeChart