AppletLauncher

package thinlet
public class AppletLauncher
extends java.applet.Applet
implements java.lang.Runnable

AppletLauncher is a double buffered applet to launch any thinlet component

Constructor
publicAppletLauncher()

public AppletLauncher()

Applet instance is created by the browser or applet viewer

Method
public voiddestroy()

public void destroy()

Called by the browser to inform this applet that it is being reclaimed, it calls the thinlet component's destroy method (its return value is irrelevant)

Overrides:

destroy in class java.applet.Applet

public voiddoLayout()

public void doLayout()

Clear the double buffer image, the overriden method lays out its components (centers the thinlet component)

Overrides:

doLayout in class java.awt.Container

public voidinit()

public void init()

Called by the browser to inform this applet that it has been loaded into the system, it displays the Loading... label and starts the loader thread

Overrides:

init in class java.applet.Applet

public voidpaint(Graphics g)

public void paint(java.awt.Graphics g)

Create a double buffer if needed, the thinlet component paints the content

Overrides:

paint in class java.awt.Container

public voidrun()

public void run()

Create a new thinlet instance of the class given as class applet parameter, and show it or the message of the thrown exception. First try a contructor with an applet parameter (thus you get this applet instance e.g. for the parameters of the applet HTML tag), then the empty constructor

public voidstop()

public void stop()

Called by the browser to inform this applet that it should stop its execution, it clears the double buffer image

Overrides:

stop in class java.applet.Applet

public voidupdate(Graphics g)

public void update(java.awt.Graphics g)

Call the paint method to redraw this component without painting a background rectangle

Overrides:

update in class java.awt.Container