b1=JButton("Test")
bind(b1,"actionPerformed",function(e) println("Press to test, Release to detonate"))

Example 2: Adding event listeners.

Back to Article