ERROR:Canvas3D constructed with a null GraphicsConfiguration
This will cause a NullPointerException in a subsequent release
错误:Canvas3D使用空图形配置构造函数
这会在随后的程序或版本中产生一个空指针例程或错误
解决办法:
加入包:import java.awt.GraphicsConfiguration;
在setLayout(new BorderLayout());之后插入:
GraphicsConfiguration config=SimpleUniverse.getPreferredConfiguration();
Canvas3D c=new Canvas3D(null);改为:Canvas3D c=new Canvas3D(config);
运行ok!