Message5844

Author akong
Recipients Carolinus, akong
Date 2010-06-27.21:03:46
SpamBayes Score 0.0050050877
Marked as misclassified No
Message-id <1277672627.55.0.341173989611.issue1623@psf.upfronthosting.co.za>
In-reply-to
Content
JFrame inherits from class java.awt.Frame a pair of setter and getter called setMenuBar and getMenuBar respectively. These methods return or take java.awt.Menubar. 

So, when you call

self.menuBar = JMenuBar()

jython resolved it to a call of setMenuBar and hence a conversion exception.

Rename menuBar to something else will avoid the exception
History
Date User Action Args
2010-06-27 21:03:47akongsetmessageid: <1277672627.55.0.341173989611.issue1623@psf.upfronthosting.co.za>
2010-06-27 21:03:47akongsetrecipients: + akong, Carolinus
2010-06-27 21:03:47akonglinkissue1623 messages
2010-06-27 21:03:46akongcreate