我已经做了一个最小的测试用例,以证明您在这里的描述。该程序可以运行,但是除非能看到您正在使用的代码,否则我无法真正为您提供帮助。
import java.awt.geom.*;import java.awt.*;import javax.swing.*;public class CurveDraw extends Jframe { public static void main(String[] args) { CurveDraw frame = new CurveDraw(); frame.setVisible(true); } public CurveDraw() { setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE); setSize(400,400); } public void paint(Graphics g) { QuadCurve2D.Double curve = new QuadCurve2D.Double(50,100,100,170,150,100); ((Graphics2D)g).draw(curve); }}


