i have an applet using one thread for drawing graphics.
the problem is when i use appletviewer with console window in background and i close the applet window, the onsole frame seems to lock for a while.
the code:
public void start()
{
if (runner == null)
{
runner = new Thread(this);
runner.start();
}
System.out.println("Applet : Start");
}
public void stop()
{
System.out.println("applet stop");
runner = null;
}
public void destroy()
{
offscreen.dispose();
System.out.println("destroyed");
}
im in sorrow that the thread doesnt get destroyed properly.