java swing thread code example
Example 1: java thread
public class ClassName extends Thread{
public void run(){
super.run();
//Your Code
}
}
public class Main{
public static void main(String[] args){
ClassName thread = new ClassName();
thread.start();
}
}
Example 2: java thread
public static void main(String[] args {
...
Thread t1= new Thread(...);
t1.start();
...
}