Error: at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:963)
Are you stuck with this error. Don’t be panic.
Don’t declare the Canvas3D object with null value.
Canvas3D canvas = new Canvas3D(null);
Instead pass the GraphicsConfiguration parameter:
GraphicsConfiguration config =
SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas = new Canvas3D(config);
Done !
Don’t forget to import:
java.awt.GraphicsConfiguration;
com.sun.j3d.utils.universe.SimpleUniverse;
Advertisement
most excellent advice. i was following the example straight from sun’s guide to java 3d in chapter 1 and it does it with null.
this fixed my problem, thanks
i tried this but it didnt work
i appreciate your post, it has been useful to me