I have this class for creating a thread in Java
package org.vdzundza.forms;
import java.awt.Graphics;
import java.awt.Graphics2D;
public class DrawThread exten
simple call:
new DrawThread().start();
to start new Thread
DrawThread drawThread; // declare object of class DrawThread
drawThread = new DrawThread(); // instantiate object of class DrawThread
drawThread.start(); // call start to start DrawThread
(DrawThread is extending Thread class) so involves:
public synchronized void start() {
checkNotStarted();
hasBeenStarted = true;
nativeCreate(this, stackSize, daemon); // here Thread is created
}
u call is ike PUT THREAD INSIDE THREAD (AS RUNNABLE) by calling:
public Thread(Runnable runnable) {
create(null, runnable, null, 0);
}