I Need Some Help for Timer
I have these two methods:
publicvoid init()
{
getContentPane().add(imagePanel);
}
publicvoid setSpeed(int sleepTime)
{
timer.setDelay(sleepTime);
}
How do i invoke the method setSpeed(int sleepTime) with a line of code inside the init() method?
Many thanks.

