I am having a problem loading a DXF file with the NCSA Portfolio
loader.  It's telling me that:

This method is not implemented in ModelLoader
Use load(Reader reader, String ext) instead.
Exception in thread "main" java.lang.NullPointerException:
....

so I implement some form of the method listed using "dxf" as the String

Now I get:

java.lang.NullPointerException
Exception in thread "main" java.lang.NullPointerException.
....


here is the relevant code:

 public void init() {
 Canvas3D mCanvas3D = new Canvas3D(null);
 add ("Center", mCanvas3D);
 SimpleUniverse u = new SimpleUniverse(mCanvas3D);


 File mFile = new File("C:/columbia.dxf");
 ModelLoader mLoader = new ModelLoader();
 try {
  u.addBranchGraph(mLoader.load(new FileReader(mFile),
"dxf").getSceneGroup())
 } catch(FileNotFoundException e) {System.out.println(e);}
 }



Thanks for your help!
Matt
_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to