Message4400

Author alv131
Recipients alv131
Date 2009-03-31.07:47:20
SpamBayes Score 0.045424454
Marked as misclassified No
Message-id <1238485641.42.0.76306519112.issue1296@psf.upfronthosting.co.za>
In-reply-to
Content
2.5b3: "jframe_02.py" and "jframe_04.py" have problems when using None.
"jframe_03.py" is ok.
2.2.1: all of them are ok.

jframe_02.py:
=============

from javax.swing import JFrame
from javax.swing import WindowConstants

# EXCEPTION: locationRelativeTo=None
f = JFrame('Hello, World!',
defaultCloseOperation=WindowConstants.DISPOSE_ON_CLOSE, size=(300, 300),
locationRelativeTo=None)
# f = JFrame('Hello, World!',
defaultCloseOperation=WindowConstants.DISPOSE_ON_CLOSE, size=(300, 300))
f.setVisible(1)

jframe_03.py:
=============

from javax.swing import JFrame
from javax.swing import WindowConstants

f = JFrame('Hello, World!')
f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE)
f.setSize(300, 300)
# NO PROBLEMS HERE
f.setLocationRelativeTo(None)
f.setVisible(1)

jframe_04.py:
=============

from javax.swing import JFrame
from javax.swing import WindowConstants

f = JFrame('Hello, World!')
f.defaultCloseOperation = WindowConstants.DISPOSE_ON_CLOSE
f.size = (300, 300)
# EXCEPTION on the next line!
f.locationRelativeTo = None
f.setVisible(1)
History
Date User Action Args
2009-03-31 07:47:21alv131setrecipients: + alv131
2009-03-31 07:47:21alv131setmessageid: <1238485641.42.0.76306519112.issue1296@psf.upfronthosting.co.za>
2009-03-31 07:47:20alv131linkissue1296 messages
2009-03-31 07:47:20alv131create