Does jFreeChart work/comple in Android 2.x

不打扰是莪最后的温柔 提交于 2019-12-06 02:49:17

问题


Does jFreeChart compile and run in Android 2.2 or above? I tried to run it and received missing swing class errors. There does not seem to be any definitive answer on the web. The answer to this question is either 1) Yes, I use it all the time, here are the steps or 2) No, It doesn't work because _.

I just want to put this issue to rest and get a definitive answer. So please don't suggest other chart packages.

Thanks

Fish


回答1:


JFreeChart will not compile/run in Android as is because it relies on swing packages. Swing components are not used by Android, and not included in Android's version of Java.




回答2:


I see another port of JFreeChart for Android:

http://code.google.com/p/afreechart/

It looks good. You can see its screenshots here:

http://afreechart.googlecode.com/svn/doc/screenshot/index.html




回答3:


There is a port of JFreeCharts to Android. I don't know how complete it is. You can give it a try:

http://code.google.com/p/droidcharts/



来源:https://stackoverflow.com/questions/4788576/does-jfreechart-work-comple-in-android-2-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!