Re: [JAVA3D] Swing and geometry

2002-08-09 Thread Georg Rehfeld
Dear Rob, > reference to Box is ambiguous, both class > javax.swing.Box in javax.swing and class > com.sun.j3d.utils.geometry.Box in > com.sun.j3d.utils.geometry match > gunXfmGrp.addChild(new > Box(1.0f,1.0f,0.5f,gunApp)); Be specific: either don't import javax.swing.* but instead exa

Re: [JAVA3D] Swing and geometry

2002-08-09 Thread Christopher Davies
Rob, > reference to Box is ambiguous, both class > javax.swing.Box in javax.swing and class > Does anyone know a way to get round this? As it says on the docs, make explicit references to which Box you mean (only import one of them , then you only have to make explicit references to one of them)

Re: [JAVA3D] Swing and geometry

2002-08-09 Thread Kevin Glass
Reference one of them explicitily, e.g.: gunXfmGrp.addChild(new com.sun.j3d.util.geometry.Box(1.0f,1.0f,0.5f,gunApp)); and import the other. Kev Rob Elsam wrote: >I am making a game that uses a Box shape and has a GUI >to control various things. However importing Swing >and >com.j3d.utils.ge

[JAVA3D] Swing and geometry

2002-08-09 Thread Rob Elsam
I am making a game that uses a Box shape and has a GUI to control various things. However importing Swing and com.j3d.utils.geometry causes the following error: reference to Box is ambiguous, both class javax.swing.Box in javax.swing and class com.sun.j3d.utils.geometry.Box in com.sun.j3d.utils.g