Message6249

Author MrMeanie
Recipients MrMeanie, alex.gronholm, otmarhumbel, zyasoft
Date 2010-11-14.15:28:03
SpamBayes Score 7.213446e-06
Marked as misclassified No
Message-id <1289748483.89.0.727697270766.issue1675@psf.upfronthosting.co.za>
In-reply-to
Content
The following code reproduces it:

from javax.swing import *

label = JLabel( 'Hello world' )
frame = JFrame()
frame.add( label )
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE )

frame.show()


Also attached as a file.

Running it with 'jython swingtest.py' exits immediately, closing the window, instead of waiting for the user to close it.
Running it with 'jython -i swingtest.py' does not, but requires that Jython is closed manually from the jython prompt.


Commenting out the 'System.exit(0);' line in jython.java allows the program to run with 'jython swingtest.py' as one would expect it to.



My platform:

Windows Vista 64

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

Jython: r7171
History
Date User Action Args
2010-11-14 15:28:03MrMeaniesetmessageid: <1289748483.89.0.727697270766.issue1675@psf.upfronthosting.co.za>
2010-11-14 15:28:03MrMeaniesetrecipients: + MrMeanie, otmarhumbel, zyasoft, alex.gronholm
2010-11-14 15:28:03MrMeanielinkissue1675 messages
2010-11-14 15:28:03MrMeaniecreate