From: Ype K. <yk...@xs...> - 2001-03-15 19:17:16
|
Already sent to syKim: > > >syKim, > >>Thank you very much, Ype :) >> >>I saw your code and it was very helpful.. >> >>Now, I'm got the idea of translation DnD in Java >> >>I'll try more translation for it.. Thank you. > >My pleasure. > >>However, According to your mention as below: >>>Since you have some Java code already, you can subclass it >>>in Jython (Just as JTree is subclassed here), so >>>there is no need to rewrite existing Java code into Jython. >> >>It's possible that import .java source file? >> >>I thought that only .py can be imported... >> >>How import .java source file? just import as impoting .py or other way on >>it? > >Compile the .java file to a .class file, and make sure the directory >of the class file is part of the java class path when you invoke >jython. Then have a look at: > >http://www.jython.org/docs/usejava.html > >and enjoy the miracles of dynamic method invocation, class >attribute access and subclassing in jython. > >Have fun, >Ype |