|
From: Andreas S. <sch...@ia...> - 2001-11-13 11:00:25
|
On Mon, 12 Nov 2001, Robert W. Bill wrote: > On Mon, 12 Nov 2001, Andreas Schlapbach wrote: > > Hi List > > > > I am looking at scripting languages based on the JVM and I must say I am > > impressed of Jython. The feature that really interests me is the dynamic > > creation of (JAVA) classes. Implementing interfaces is one application for > > this technique. > > > > So to get to know a language, I allways try to implement this mini > > help-browser (see attachment). In order to be able to browse, you have to > > implement the HyperlinkListener. I have stared at this now for hours, and I > > am allmost convinced it should work. However it does not. > > > > May be I am just blind, or I miss something. Could somebody take a look this. > > I gave it a try, and it seemed to work. At least it does everything > you ask of it. The hyperlinks are not implemented, and > there's no means of exiting the jvm on close, but that would be no > different in a similar Java implementation. > > Did you get an error? Did it behave differently than you expected? If it > did, how so? Have you implemented the same help browser in Java? What I'm expecting, is that I get an event as soon as I move the mouse over a link, and print "Spam and eggs!" is displayed. But I don't see any output, so I'm concluding that, either I have not implemented the correct function or there's something fishy going on. I hope it's the former though. I've implemented it in JAVA as well as in Piccola, a research scripting lanugage at our University. What we are currently missing, is the possibility to implement interfaces on the fly, as they require some compilation. Therefore, I'm currently looking at your implementation for inspiration. Any hint, where to look especially is warmly welcomed. Andreas -- I think, so IAM. Andreas Schlapbach sch...@kd... http://www.iam.unibe.ch/~schlpbch/ |