Class AppletLauncher

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

public class AppletLauncher extends Applet implements Runnable
AppletLauncher is a double buffered applet to launch any thinlet component
See Also:
  • Constructor Details

    • AppletLauncher

      public AppletLauncher()
      Applet instance is created by the browser or applet viewer
  • Method Details

    • init

      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 Applet
    • stop

      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 Applet
    • destroy

      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 Applet
    • run

      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
      Specified by:
      run in interface Runnable
    • doLayout

      public void doLayout()
      Clear the double buffer image, the overriden method lays out its components (centers the thinlet component)
      Overrides:
      doLayout in class Container
    • paint

      public void paint(@NotNull @NotNull Graphics g)
      Create a double buffer if needed, the thinlet component paints the content
      Overrides:
      paint in class Container
    • update

      public void update(@NotNull @NotNull Graphics g)
      Call the paint method to redraw this component without painting a background rectangle
      Overrides:
      update in class Container