Question

I'm sure many will know of Simile Timeline (http://www.simile-widgets.org/timeline/), the JavaScript-based widget for embedding interactive timelines into web sites.

Timeline is open source software and is licensed under the BSD license.

How would I go about using Similie Timeline in a Java desktop application that has no Internet access?

Was it helpful?

Solution

You should just be able to include some sort of 'web browser' control, and then write the relevant html/javascript into it, do get it to render appropriately. Long time no Java, so I can't think of the name of the in-built one, but I suspect one exists.

-- Edit

Actually, it seems that the in-built control I am thinking of (JEditorPane) doesn't support JavaScript. Perhaps this will be interesting : http://lobobrowser.org/java-browser.jsp, but I'm not sure I'd go with the embedded approach, after all.

OTHER TIPS

Rhino is JS interpreter and related tools for the JVM managed by the Mozilla project. I suspect it would be a good place to start.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top