hi,
i need a Graphics2D to draw:
chart.draw(Graphics2D g2, Rectangle2D chartArea, DrawInfo info);
but i don't know hwo create a Graphics2D object??
thanks fo help,
sido
Graphics2D object
Re: Graphics2D object
i found a solution:
Graphics2D graphics2D = (Graphics2D) graphics;
now, i have a problem with the Component:
Component component = new Component() ;
Graphics graphics = component.getGraphics();
Graphics2D graphics2D = (Graphics2D) graphics;
the class Compnent is abstract and the constructor has protected access...
i don't know woh to do!
sido
Graphics2D graphics2D = (Graphics2D) graphics;
now, i have a problem with the Component:
Component component = new Component() ;
Graphics graphics = component.getGraphics();
Graphics2D graphics2D = (Graphics2D) graphics;
the class Compnent is abstract and the constructor has protected access...
i don't know woh to do!
sido
Re: Graphics2D object
You should use the JFreeChartPanel class to display your charts in a GUI...it takes care of all that for you.
Regards,
DG.
Regards,
DG.