Help in Java 3D

You are here:

I'm having a lot of trouble trying to change the appearance every time I try to touch a cone here's the code =\
/**
* addCones
* Adds cones to the scene.
* The position, orientation and appearance of the cones are hardcoded
* here.
*/

C:\Documents and Settings\Admin\Desktop\TinyNetVE\TinyNetVEv.5\src
>java scene3D/SharedCubes 0
User: 0
Exception occurred during Behavior execution:
javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to set appeara
nce
at javax.media.j3d.Shape3D.setAppearance(Shape3D.java:472)
at scene3D.Cones.setAppearance(Cones.java:65)
at scene3D.SharedCubes.getVectors(SharedCubes.java:329)
at scene3D.SharedCubes.keyPressed(SharedCubes.java:197)
at devices.KeyboardBehavior.fireKeyPressedEvent(KeyboardBehavior.java:94
)
at devices.KeyboardBehavior.processStimulus(KeyboardBehavior.java:54)
at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
at javax.media.j3d.J3dThread.run(J3dThread.java:250)

I'm having a lot of trouble trying to change the appearance every time I try
to touch a cone here's the code =\
/**
* addCones
* Adds cones to the scene.
* The position, orientation and appearance of the cones are hardcoded
* here.
*/

C:\Documents and Settings\Admin\Desktop\TinyNetVE\TinyNetVEv.5\src
>java scene3D/SharedCubes 0
User: 0
Exception occurred during Behavior execution:
javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to set
appeara
nce
at javax.media.j3d.Shape3D.setAppearance(Shape3D.java:472)
at scene3D.Cones.setAppearance(Cones.java:65)
at scene3D.SharedCubes.getVectors(SharedCubes.java:329)
at scene3D.SharedCubes.keyPressed(SharedCubes.java:197)
at
devices.KeyboardBehavior.fireKeyPressedEvent(KeyboardBehavior.java:94
)
at
devices.KeyboardBehavior.processStimulus(KeyboardBehavior.java:54)
at
javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
at javax.media.j3d.J3dThread.run(J3dThread.java:250)