I need to implement a function to run after 60 seconds of clicking a button. Please help, I used the Timer class, but I think that that is not the best way.
Using the java.util.Timer:
new Timer().schedule(new TimerTask() { @Override public void run() { // here goes your code to delay } }, 300L); // 300 is the delay in millis
Here you can find some info and examples.