Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Add Comment
Please, Sign In to add comment