> Hi everybody !
> 
> I have created a 3D modeller, and I just want to add the name of 
> the views (4), (and also a small axis) on each canvas3D so that the 
> user can identify it.
> 
> I tried to use the graphic pointer (method getGraphics(), and then 
> to do a drawString), but it returns me a null pointer exception (how 
> does it manage the stuff, if so...?).
> 
> Did anybody try to do this kind of thing... and succeeded ?
> 
> Thanks for your advices.
> 
> Ben

Hi, 

getGraphics should work, this piece of code works for me :
    Graphics g = canvas.getGraphics();
    g.drawString("TEXT",x,y);

are you sure that you apply the getGraphics function to the correct 
Canvas3D object ?

Alex...

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to