|
Hello, does anyone know how
to solve this?
'A' is a class which extends Group. When 'A' is called, it
will display a Cylinder. 'A' also has a method called setValue which will change
the height of the Cylinder by utilizing the Morph object.
'B' is a JPanel, which uses 'A' to create a lot of Cylinders.
'B' is able to setValue ONE of the Cylinders in it's panel BUT 'B' is unable to
setValue more than ONE Cylinder. Here is the error message when it tries to do
so:
Exception occurred during event
dispatching:
javax.media.j3d.RestrictedAccessException: Cannot modify capability bits on a li ve or compiled object at javax.media.j3d.SceneGraphObject.setCapability(SceneGraphObject.java, Compiled Code) at MorphCylinder.setValue(MorphCylinder.java, Compiled Code) at TestMorphCylinder.setValues(TestMorphCylinder.java:324) at TestMorphCylinder.actionPerformed(TestMorphCylinder.java, Compiled Co de) |
