Skip to main content

CapabilityNotSetException: Shape3D: no capability to get appearance

1 reply [Last post]
Anonymous

My Programm has got the CapabilityNotSetException (javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to get appearance)

private Cone arrow;
…
…
arrow = new Cone(0.05f, 0.1f);
arrow.setCapability(arrow.ENABLE_APPEARANCE_MODIFY);
Can anybody say me what I must write here?
…
…

arrow.getAppearance().setRenderingAttributes(r_a);

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous

It works now. But I don't know why
:-)