From: Robert W. B. <rb...@di...> - 2001-11-13 03:51:14
|
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? -robert > Thanks. > > Andreas > > P.S.: If you remove the <!-- --> comments in the Jython Docs, this could be > the start of a help browser for Jython (JEditorPane seems to allmost > supports HTML 3.2) |