Skip to content

Instantly share code, notes, and snippets.

@bdkosher
Created March 4, 2015 22:04
Show Gist options
  • Save bdkosher/ed8a1b142e3c4ee8db4c to your computer and use it in GitHub Desktop.
Save bdkosher/ed8a1b142e3c4ee8db4c to your computer and use it in GitHub Desktop.
Prompt to pause script in Groovy console
import javax.swing.*
void pause() {
JOptionPane.showMessageDialog(new JFrame(), 'Click OK to continue.', 'Script Execution Paused', JOptionPane.INFORMATION_MESSAGE)
}
println 1
pause()
println 2
pause()
println 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment