From: Ype K. <yk...@xs...> - 2001-03-11 16:21:42
|
syKim, you wrote: > >DnD is Drag & Drop which library in java.awt.dnd (over jdk1.2.x) > >>There is a file called treedemo.py in the Demo dir of the > >jython installation: it will get you started. > >I already saw it. >but, it's just Jtree demo not DnD.. > >I don't know how do I handle that class as xxxListener, xxxRecognizer. I have never programmed drag and drop. Still, in case you have some (working) Java code I can help you converting it to Jython. Could provide an example of Java DnD code that you want to convert to Jython? When you instantiate an object from a Java class in Jython, you actually instantiate the object from a Jython proxy class. You can pass keyword arguments for this proxy to initialize its attributes/methods from. This is how the "exit" works in the JTree example. My guess is that you will need something similar for DnD events. Regards, Ype |