Suppose I have a java object:


Import java.awt



now, I would really like to use it as a python object, i.e do things like adding attributes on the fly like



Which jython doesn’t allow me, I’m guessing becaue w is a java object and not a python object (BTW – I don’t really use a Window instance in the real code). Is there a way around it, or am I not using jython correctly?

Thanks, Noam