开发者

Can I use Google Visualization API in Java Swing Application?

开发者 https://www.devze.com 2023-03-02 06:41 出处:网络
I want to use google visualization API to draw some charts in a Java Swing Application. I have tried with JEditorPane which开发者_如何学编程 can load a HTML page in the swing application, but it does

I want to use google visualization API to draw some charts in a Java Swing Application.

I have tried with JEditorPane which开发者_如何学编程 can load a HTML page in the swing application, but it doesn't support Javascript.

And I have tried another open source java browser LOBO, but I failed again as it is not strong enough to render google visualization api.

I have also read something with GWT, but it will generates Javascript and I still don't know how to use it in Swing. So it is not what I want.

Is it possible to use google visualization API in Java swing application?


I was using jfreechart to draw charts in my swing application. It's pretty simply in use.


charts4j will be a proper solution. Example code for displaying a chart via Swing can be found here

0

精彩评论

暂无评论...
验证码 换一张
取 消