Message6249
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 |
|
Date |
User |
Action |
Args |
2010-11-14 15:28:03 | MrMeanie | set | messageid: <1289748483.89.0.727697270766.issue1675@psf.upfronthosting.co.za> |
2010-11-14 15:28:03 | MrMeanie | set | recipients:
+ MrMeanie, otmarhumbel, zyasoft, alex.gronholm |
2010-11-14 15:28:03 | MrMeanie | link | issue1675 messages |
2010-11-14 15:28:03 | MrMeanie | create | |
|