private static void paintQuadCurve2D(Graphics g, RemoteCurve curve, boolean fill) { Graphics2D g2d = (Graphics2D) g; try { // Rectangle bounds = arc.getBounds(); QuadCurve2D.Double arc2D = new QuadCurve2D.Double( curve.getX(), curve.getY(), curve.getWidth(), curve.getHeight(), curve.getControlX(), curve.getControlY()); if (fill) g2d.fill(arc2D); else g2d.draw(arc2D); } catch (Exception e) { e.printStackTrace(); // System.out.println(e); } }