If you reload this page, or return to it after going back to the index page (alternatively using the browser's <- button), you should find that the 'hello, world' greeting is printed every time.

The source code is as follows:

package com.lafros
import javax.swing.JApplet

class ActorsApplet extends JApplet {
  println("new instance created")

  override def init() {
    println("init()")
    new Thread {
      override def run() = println("hello, world")
    }.start()
  }
  override def start() = println("start()")
  override def stop() = println("stop()")
  override def destroy() = println("destroy()")
}