• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Error while running an example  RSS feed

 
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.

 
Rancher
Posts: 42974
76
  • 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: 42974
76
  • 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
Boost this thread!