Skip to content

Instantly share code, notes, and snippets.

@fffars
Created January 16, 2019 10:45
Show Gist options
  • Save fffars/d0f0c6872f5b2dac05101641b7fcedc1 to your computer and use it in GitHub Desktop.
Save fffars/d0f0c6872f5b2dac05101641b7fcedc1 to your computer and use it in GitHub Desktop.
require 'java'
ActionListener = java.awt.event.ActionListener
$check=true
$inter=false
$stepMode=true
$runToEnd=false
class ToBreakListener < ActionListener
def actionPerformed(e)
$check = false
$stepMode = true
puts $check
end
end
btnToBreak.addActionListener ToBreakListener.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment