TriggerCallback tt;
public void start()
{
started = true;
if (delay==-1) return;
final TimingTriggerer timer = TimingTriggerer.getTimer();
timer.setResolution(100); //100*1ms resoltuion is 0,1seconds
tt = new TriggerCallback()
{
public void doIt(int state, Object o)
{
animCounter++;
animCounter = animCounter % (images.size());
if (started)
timer.addTrigger(tt, delay, 0, null);
if (isInPaintList)
panel.updateNeeded(true);
}
};
timer.addTrigger(tt, delay, 0, null);
}