HI
I am trying to run the Gantt Chart as Applet it works OK with Appletviewer
but when I run through the IE browser it gives error
java.lang.ExceptionInInitialiser Error
/* code listing
import javax.swing.*;
import java.awt.*;
import com.jrefinery.chart.JFreeChart;
import com.jrefinery.chart.ChartFactory;
import com.jrefinery.chart.ChartPanel;
import com.jrefinery.data.IntervalCategoryDataset;
import com.jrefinery.ui.ApplicationFrame;
import com.jrefinery.ui.RefineryUtilities;
import com.jrefinery.chart.demo.*;
public class GCApplet extends JApplet {
public void init() {
resize(500, 1000);
}
public GCApplet() {
try
{
IntervalCategoryDataset dataset = DemoDatasetFactory.createSampleGanttDataset();
// create the chart...
JFreeChart chart = ChartFactory.createGanttChart("Gantt Chart Integration Demo", // chart title
"Tasks", // domain axis label
"Date", // range axis label
dataset, // data
true, // include legend
true, // tooltips
false // urls
);
// add the chart to a panel...
ChartPanel chartPanel = new ChartPanel(chart);
chartPanel.setPreferredSize(new java.awt.Dimension(800, 1000));
this.getContentPane().add(chartPanel);
}
catch (Exception e) { System.out.println("Error...."); }
}
}
have I done anything wrong.