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