明喻时间轴
我相信很多人都会知道 Simile Timeline (http://www.simile-widgets.org/时间线/),基于 JavaScript 的小部件,用于将交互式时间线嵌入到网站中。
Timeline 是开源软件,并根据 BSD 许可证获得许可。
我该如何在无法访问 Internet 的 Java 桌面应用程序中使用 Similie 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够包含某种“网络浏览器”控件,然后将相关的 html/javascript 写入其中,并使其正确呈现。很长时间没有使用 Java,所以我想不起内置的名称,但我怀疑存在一个。
-- 编辑
实际上,我正在考虑的内置控件(JEditorPane)似乎不支持JavaScript。也许这会很有趣:http://lobobrowser.org/java-browser.jsp,但毕竟我不确定我是否会采用嵌入式方法。
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 是由 Mozilla 项目管理的 JVM 的 JS 解释器和相关工具。我怀疑这将是一个很好的起点。
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.