Re: Help with broken code

Hasan Diwan <[email protected]> Fri, 19 Feb 2016 00:11:43 -0800
Newsgroups gmane.comp.lang.jython.user
Message-ID <CAP+bYWByseKMHGuRSjZkDPusaHV6CFOR5RjHboo_92r6kxgXsg@mail.gmail.com>
Works fine for me -- Mac OS X El Capital JDK 1.8, jython 2.7b3 -- H

On 17 February 2016 at 10:07, Rafael Bejarano <[email protected]> wrote:

> Hello,
>
> The demo program below used to work, but now, when the button is clicked,
> nothing happens, although the window displaying the button does open just
> fine.  I run it in the Macintosh Unix terminal.  Any assistance with this
> problem would be greatly appreciated.
>
> Rafael Bejarano
>
> from javax.swing import JButton, JFrame
> frame = JFrame('Hello, Jython!', defaultCloseOperation =
> JFrame.EXIT_ON_CLOSE, size = (300,300))
> def change_text(event):
>         print "Clicked!"
>
> button = JButton('Click Me!', actionPerformed=change_text)
> frame.add(button)
> frame.visible = True
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Jython-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jython-users
>



-- 
OpenPGP: http://hasan.d8u.us/gpg.asc
Sent from my mobile device
Envoyé de mon portable

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users