Created
May 27, 2010 12:46
-
-
Save xlson/415761 to your computer and use it in GitHub Desktop.
Timered message used in a pomodoro. (Inspired by http://twitter.com/mahnve)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.* | |
def showTimeredMessage(String message, int afterSeconds = 600) { | |
sleep (afterSeconds*1000) | |
JOptionPane.showMessageDialog(null, message) | |
} | |
showTimeredMessage("Pomodoro over, get back to work! :)", 300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment