Top Description Fields Constructors Methods
com.jogamp.newt.awt.applet

public Class JOGLNewtApplet1Run

extends Applet
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.applet.Applet, java.awt.BorderLayout, .Button, .Component, .Container, .EventQueue, java.awt.event.KeyListener, .MouseListener, .MouseMotionListener, java.util.Arrays, com.jogamp.nativewindow.WindowClosingProtocol.WindowClosingMode, com.jogamp.opengl.FPSCounter, .GLCapabilities, .GLEventListener, .GLProfile, jogamp.nativewindow.jawt.JAWTUtil, com.jogamp.common.util.awt.AWTEDTExecutor, com.jogamp.newt.awt.NewtCanvasAWT, com.jogamp.newt.opengl.GLWindow, com.jogamp.newt.util.applet.JOGLNewtAppletBase

Deprecated

as a consequence of Applet being deprecated. See corresponding docs for further information.

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 !
 

Field Summary

Modifier and TypeField and Description
pack-priv JOGLNewtAppletBase
public static final boolean
pack-priv int
glHeight

if valid glStandalone:=true (own window) !

pack-priv int
glWidth

if valid glStandalone:=true (own window) !

pack-priv GLWindow
pack-priv int
glXd

if valid glStandalone:=true (own window) !

pack-priv int
glYd

if valid glStandalone:=true (own window) !

pack-priv NewtCanvasAWT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
public void
destroy()

Overrides java.applet.Applet.destroy.

Called by the browser or applet viewer to inform this applet that it is being reclaimed and that it should destroy any resources that it has allocated.
public void
init()

Overrides java.applet.Applet.init.

Called by the browser or applet viewer to inform this applet that it has been loaded into the system.
public void
start()

Overrides java.applet.Applet.start.

Called by the browser or applet viewer to inform this applet that it should start its execution.
public void
stop()

Overrides java.applet.Applet.stop.

Called by the browser or applet viewer to inform this applet that it should stop its execution.
Inherited from java.applet.Applet:
getAccessibleContextgetAppletContextgetAppletInfogetAudioClipgetAudioClipgetCodeBasegetDocumentBasegetImagegetImagegetLocalegetParametergetParameterInfoisActiveisValidateRootnewAudioClipplayplayresizeresizesetStubshowStatus

Field Detail

baseback to summary
pack-priv JOGLNewtAppletBase base

Hides java.awt.Panel.base.

DEBUGback to summary
public static final boolean DEBUG
glHeightback to summary
pack-priv int glHeight

if valid glStandalone:=true (own window) !

glWidthback to summary
pack-priv int glWidth

if valid glStandalone:=true (own window) !

glWindowback to summary
pack-priv GLWindow glWindow
glXdback to summary
pack-priv int glXd

if valid glStandalone:=true (own window) !

glYdback to summary
pack-priv int glYd

if valid glStandalone:=true (own window) !

newtCanvasAWTback to summary
pack-priv NewtCanvasAWT newtCanvasAWT

Constructor Detail

JOGLNewtApplet1Runback to summary
public JOGLNewtApplet1Run()

Method Detail

currentThreadNameback to summary
private static String currentThreadName()
destroyback to summary
public void destroy()

Overrides java.applet.Applet.destroy.

Doc from java.applet.Applet.destroy.

Called by the browser or applet viewer to inform this applet that it is being reclaimed and that it should destroy any resources that it has allocated. The stop method will always be called before destroy.

A subclass of Applet should override this method if it has any operation that it wants to perform before it is destroyed. For example, an applet with threads would use the init method to create the threads and the destroy method to kill them.

The implementation of this method provided by the Applet class does nothing.

Annotations
@Override
initback to summary
public void init()

Overrides java.applet.Applet.init.

Doc from java.applet.Applet.init.

Called by the browser or applet viewer to inform this applet that it has been loaded into the system. It is always called before the first time that the start method is called.

A subclass of Applet should override this method if it has initialization to perform. For example, an applet with threads would use the init method to create the threads and the destroy method to kill them.

The implementation of this method provided by the Applet class does nothing.

Annotations
@Override
startback to summary
public void start()

Overrides java.applet.Applet.start.

Doc from java.applet.Applet.start.

Called by the browser or applet viewer to inform this applet that it should start its execution. It is called after the init method and each time the applet is revisited in a Web page.

A subclass of Applet should override this method if it has any operation that it wants to perform each time the Web page containing it is visited. For example, an applet with animation might want to use the start method to resume animation, and the stop method to suspend the animation.

Note

some methods, such as getLocationOnScreen, can only provide meaningful results if the applet is showing. Because isShowing returns false when the applet's start is first called, methods requiring isShowing to return true should be called from a ComponentListener.

The implementation of this method provided by the Applet class does nothing.

Annotations
@Override
stopback to summary
public void stop()

Overrides java.applet.Applet.stop.

Doc from java.applet.Applet.stop.

Called by the browser or applet viewer to inform this applet that it should stop its execution. It is called when the Web page that contains this applet has been replaced by another page, and also just before the applet is to be destroyed.

A subclass of Applet should override this method if it has any operation that it wants to perform each time the Web page containing it is no longer visible. For example, an applet with animation might want to use the start method to resume animation, and the stop method to suspend the animation.

The implementation of this method provided by the Applet class does nothing.

Annotations
@Override