最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - D3js within Java application - Stack Overflow

programmeradmin2浏览0评论

What is the best way to embed a D3js visualization within a Java application?

Initial thoughts:

  • JWebPane (Vaporware)
  • Lobo browser (Still at HTML 4 and CSS 2)
  • DJ Native Swing Project (Inactive since 2011)
  • Other ideas?

There have been related SO questions (such as this), I'm looking for solutions specific to supporting D3js.

I am open to ideas that may not include a full blown web-browser integration, just the minimal set required for D3 visualization. I'm thinking this would include a Javascript interpreter, DOM manipulation, and an HTML/CSS layout engine such as WebKit.

What is the best way to embed a D3js visualization within a Java application?

Initial thoughts:

  • JWebPane (Vaporware)
  • Lobo browser (Still at HTML 4 and CSS 2)
  • DJ Native Swing Project (Inactive since 2011)
  • Other ideas?

There have been related SO questions (such as this), I'm looking for solutions specific to supporting D3js.

I am open to ideas that may not include a full blown web-browser integration, just the minimal set required for D3 visualization. I'm thinking this would include a Javascript interpreter, DOM manipulation, and an HTML/CSS layout engine such as WebKit.

Share Improve this question edited May 23, 2017 at 10:31 CommunityBot 11 silver badge asked Feb 8, 2013 at 17:53 supyosupyo 3,0372 gold badges23 silver badges35 bronze badges 3
  • Desktop@browse()? It's not embedded, but it leverages an valuable user preference. – trashgod Commented Feb 8, 2013 at 18:11
  • Embedded is a strong requirement for me at this point, but thanks for the info. – supyo Commented Feb 8, 2013 at 18:16
  • 3 Sounds like a bad combination: Javascript in Swing. I would rather look for an equivalent/analog library which actually targets Swing. Otherwise, you can always have a look at JavaFX browser component which supports HTML 5, JS, SVG and CSS3. Haven't tried,but according to its doc, your JS lib should work on it. – Guillaume Polet Commented Feb 8, 2013 at 19:23
Add a comment  | 

5 Answers 5

Reset to default 1

I have used JavaFX and webengine for this. But I am really thinkig about porting d3 to Java ...

You could use SWT's browser component via SWT/AWT bridge

javafx-d3 - Provides a Java API to use the JavaScript library d3.js with the JavaFx WebView.

So far this seems to be the best option.

I just stumbled upon this d3js without testing it.

the best way i have seen till now that importing jxBrowser library and call your html...or what ever extension was to java application. Later, you play with the Jfram change the size you want and etc..

发布评论

评论列表(0)

  1. 暂无评论