Skip to content

Instantly share code, notes, and snippets.

@olabini
Created March 21, 2009 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olabini/82802 to your computer and use it in GitHub Desktop.
Save olabini/82802 to your computer and use it in GitHub Desktop.
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