Created
August 21, 2011 20:29
-
-
Save robi42/1161115 to your computer and use it in GitHub Desktop.
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
{JFrame, JButton} = javax.swing | |
main = -> | |
frame = new JFrame('Hello World!') | |
button = new JButton('Bye bye') | |
button.addActionListener (e) -> | |
system.exit(); return | |
frame.add 'Center', button | |
frame.setSize 300, 300 | |
frame.visible = true | |
return | |
main() if require.main is module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment