Hi Kelvin:
That gave the same runtime error.
[...]
sphere = new Sphere ( radius, createAppearance ( color ) );
sphere.setCapability ( Shape3D.ALLOW_APPEARANCE_READ );
sphere.setCapability ( Shape3D.ALLOW_APPEARANCE_WRITE );
[...]
> Mona Wong-Barnum wrote:
>
> > I'm getting the following runtime error:
> >
> >javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to get
> >appearance
> > at javax.media.j3d.Shape3D.getAppearance(Shape3D.java:487)
> > at
> >com.sun.j3d.utils.geometry.Primitive.getAppearance(Primitive.java:185)
> > at SynuGUI$SynuTableModel.setValueAt(SynuGUI.java:792)
> >
> >
> > But I *did* set the capability:
> >
> > shape = new Sphere ( radius, createAppearance ( color ) );
> > shape.setCapability ( Sphere.ENABLE_APPEARANCE_MODIFY );
> >
> >
> Use
> Shape3D.ALLOW_APPEARANCE_READ instead.
>
> - Kelvin
> -------------
> Java 3D Team
> Sun Microsystems Inc.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
==================================================================
Mona Wong-Barnum
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/
"While you are busy dancing for others, just remember that
others are also busy dancing for you"
(A Landmark Instructor)
==================================================================
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".