From: Nathaniel G. A. <nat...@ya...> - 2003-08-28 14:51:37
|
take a look at the User Guide section: http://jcharts.sourceforge.net/userGuide/exportingImages.html#Charts+In+Swing+Apps the package names are different as this is for the upcoming 1.0.0 release, but the methods are the same. --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > 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 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |