From: Lapinski, M. (Research) <lap...@cr...> - 2003-08-28 14:16:44
|
Hello, Has anyone attempted to diaply a chart in a java GUI instead of exporting as a file? If so how did ya do it? I tried the following to no avail: AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisCharts.width, AxisCharts.height ); Graphics2D g2d = axisChart.getGraphics2D(); //this is a java.awt.Frame Panel p = new Panel(); p.setSize(500, 500); p.add(new Label("popo")); this.setSize(600, 600); this.getContentPane().add(p); p.paint(g2d); Anyone have a suggestion? -thank you -mtl -------------------------------------------------- Michael Lapinski Computer Scientist GE Research "I think there is a world market for maybe five computers." - IBM Chairman Thomas Watson, 1943 |