문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top