Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while running an example

 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,

I have just used to sample code, HelloUniverse.java

The applet display but gives an error message as follows.

Can anyone help me to rectify this error.

Thanks in advance.

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not knowing what HelloUniverse, GraphicsConfiguration or Canvas3D do, this is a bit tricky to answer.

Canvas3D constructed with a null GraphicsConfiguration


If this is true, and is part of your code, you might want to correct it (i.e., construct a Canvas3D with a non-null GraphicsConfiguration).
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Sorry for not putting the code.
This code snippet is taken from the tutorials for Java3D.

How should i rectify the error?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Canvas3D c = new Canvas3D(null);


Do exactly what the error message suggests: don't create a Canvas3D with a null GraphicsConfiguration (I'm assuming the parameter is a GraphicsConfiguration).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic