Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.338 kB
import(:javax:swing, :JFrame, :JButton)
import java:awt:GridLayout
button = JButton new("Press me!") do(
addActionListener(fn(e, button text = "Hello from Ioke"))
addActionListener(fn(e, "button pressed" println)))
JFrame new("My Frame") do(
layout = GridLayout new(2, 2, 3, 3)
add(button)
setSize(300, 80)
visible = true)
Jump to Line
Something went wrong with that request. Please try again.