Hi mikec1:
One example of this i made in one of my strategies: used to update a table every 10 secs.
private void myTableUpdate() {
myTimer = new java.util.Timer();
myTimerTask = new TimerTask() {
@Override
public void run() {
try {
updateTableContent();
// just to test activity - myConsole.getOut().println("testing");
} catch (Exception e) {
}
}
};
myTimer.scheduleAtFixedRate(myTimerTask, 0, 10000);
}
Hope that helps.
Trade well and prospers in your way
JL