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
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)
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
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