Skip to Main Content


843799Nov 15 2001 — edited Nov 20 2001
Hi, i am just getting started on developing a java 3d application, and i was wondering if anyone knows whether GraphicsContext3D works similar as swing Graphics2d, and can i use GraphicsContext3D to draw swing objects?

for example:

public void paint(Graphics g)
Graphics2D g2D = (Graphics2D)g;
GraphicsContext3D g3D = (GraphicsContext3D)g2D;


public void paint(Graphics g)
GraphicsContext3D g3D = (GraphicsContext3D)g;

I am thinking the later may work better.

If there is another way within java3d that is similar to repainting all the objects, then please say so.

cheers dave
Post Details
Added on Nov 15 2001
1 comment