From: Edward P. <epo...@te...> - 2002-02-25 23:50:38
|
Does Jython change all java.lang.String objects to PyString automatically. I have a JList which may contain any object, as well as String. However in my test cases, all my String objects become PyString after I add the String to the DefaultListModel I am using. If I: class MyString(java.lang.Object): def __init__(self,text): self.__text=text def toString(self): return self.__text then all is well again, but this is extra work I don't need. Any hints? Thanks -Ed |