![]() |
![]() |
![]() |
![]() |
![]() |
|
public class class name extends Thread {
controlled-class name instance variable;
public class name (controlled-class name parameter) {
instance variable = parameter;
}
public void run () {
// Method calls with instance variable as the target
}
}
SwingUtilities class
method, invokeLater.
try{sleep(time, in milliseconds);}
catch (InterruptedException e) {return;}
run method and then arrange for the
new value to cause the run method to return.