Search code examples
javajavascriptdesktop-applicationsimile

Simile Timeline


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?


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.