简体   繁体   中英

Can I use Google Visualization API in Java Swing Application?

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?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM