title: How can I draw a curved line segment using QuadCurve2D.Double?
body: <p>Here is the line of code where I declare the curve:</p>
  
  <pre><code>QuadCurve2D.Double curve = new QuadCurve2D.Double(50,100,100,170,150,100);
  </code></pre>
  
  <p>Now what code can I use to draw this curve? I tried something like:</p>
  
  <pre><code>g.draw(curve);
  </code></pre>
  
  <p>but obviously that didn't work. Any suggestions?</p>