Class JOGLNewtApplet1Run

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class JOGLNewtApplet1Run
    extends Applet
    Simple GLEventListener deployment as an applet using JOGL. This demo must be referenced from a web page via an <applet> tag.

    Example of an applet tag using GearsES2 within the applet area (normal case):

            <applet width=100 height=100>
               <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
               <param name="gl_event_listener_class" value="com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2">
               <param name="gl_profile" value="GL2">
               <param name="gl_swap_interval" value="1">
               <param name="gl_debug" value="false">
               <param name="gl_trace" value="false">
               <param name="jnlp_href" value="jogl-newt-applet-runner.jnlp">
            </applet>Hello Gears !
      

    Example of an applet tag using GearsES2 in an undecorated, translucent, closeable and always-on-top window:

            <applet width=1 height=1>
               <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
               <param name="gl_event_listener_class" value="com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2">
               <param name="gl_profile" value="GL2">
               <param name="gl_swap_interval" value="1">
               <param name="gl_undecorated" value="true">
               <param name="gl_alwaysontop" value="true">
               <param name="gl_closeable" value="true">
               <param name="gl_alpha" value="1">
               <param name="gl_multisamplebuffer" value="0">
               <param name="gl_opaque" value="false">
               <param name="gl_dx" value="10">
               <param name="gl_dy" value="0">
               <param name="gl_width" value="100">
               <param name="gl_height" value="100">
               <param name="gl_nodefaultkeyListener" value="true">
               <param name="gl_debug" value="false">
               <param name="gl_trace" value="false">
               <param name="jnlp_href" value="jogl-newt-applet-runner.jnlp">
            </applet>Hello Gears !
      

    See Also:
    Serialized Form
    • Field Detail

      • DEBUG

        public static final boolean DEBUG
    • Constructor Detail

      • JOGLNewtApplet1Run

        public JOGLNewtApplet1Run()
    • Method Detail

      • init

        public void init()
        Overrides:
        init in class Applet
      • start

        public void start()
        Overrides:
        start in class Applet
      • stop

        public void stop()
        Overrides:
        stop in class Applet
      • destroy

        public void destroy()
        Overrides:
        destroy in class Applet