Created
March 21, 2009 10:17
-
-
Save olabini/82802 to your computer and use it in GitHub Desktop.
This file contains 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
import(:javax:swing, :JFrame, :JButton) | |
import java:awt:GridLayout | |
button = JButton new("Press me!") do( | |
addActionListener(fn(e, button text = "Hello from Ioke"))) | |
JFrame new("My Frame") do( | |
layout = GridLayout new(2, 2, 3, 3) | |
add(button) | |
setSize(300, 80) | |
visible = true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment