Table of Contents Chapter Index Previous Slide Next Slide 427
Creating the Java class

Writing program scripts with Java
Creating the Java class
  • The program script file must import the VRML packages:

    import vrml.*;
    import vrml.field.*;
    import vrml.node.*;

  • The program script must define a public class that extends the Script class

    public class bounce2
        extends Script
    {
        . . .
    }