Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
when (currentVat.morphInto("awt")) -> {
|
||||
var clicks := 0
|
||||
def w := <swing:makeJFrame>("Rosetta Code 'Simple Windowed Application'")
|
||||
w.setContentPane(JPanel`
|
||||
${def l := <swing:makeJLabel>("There have been no clicks yet.")} $\
|
||||
${def b := <swing:makeJButton>("Click Me")}
|
||||
`)
|
||||
b.addActionListener(def _ {
|
||||
to actionPerformed(_) {
|
||||
clicks += 1
|
||||
l.setText(`Number of clicks: $clicks`)
|
||||
}
|
||||
})
|
||||
w.pack()
|
||||
w.show()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue