本文介绍了用Java绘制图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的Java Swing GUI需要根据程序中生成的x和y坐标绘制2D图形。



是否有Swing组件为什么?



或者是否有任何其他开源软件包用于此目的?

解决方案 div>

您应该查看具有Swing支持的。以下是一些示例:




The Java Swing GUI that I'm developing needs to plot a 2D graph based on the x and y coordinates generated in the program.

Is there a Swing component for that?

Or is there any other open source package for the purpose?

解决方案

You should check out JFreeChart which has Swing support. Here are some samples:

http://www.jfree.org/jfreechart/samples.html

这篇关于用Java绘制图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:14
查看更多