0

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?

Dale Athanasias
  • 471
  • 3
  • 16
David
  • 5,184
  • 3
  • 41
  • 67

2 Answers2

1

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.

Noon Silk
  • 54,084
  • 6
  • 88
  • 105
  • 1
    Bouncing off your idea, I found this older thread about embedding browsers in Java: http://stackoverflow.com/questions/48249/java-embedding-a-web-browser-pane – David Sep 08 '09 at 04:30
0

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.

Jim Blizard
  • 4,255
  • 28
  • 37