Go to the documentation of this file.00001 from javax.swing import *
00002
00003 def act(evt):
00004 print "punch!!!"
00005
00006 f = JFrame()
00007 c = f.getContentPane()
00008 c.add(JButton("Punch", actionPerformed = act))
00009 f.setSize(200,200)
00010 f.setVisible(1)