Java - Pen tool
<p>I wanna create a pen tool using the Path2D Class. My problem is when comes the time to draw the shape we can see a dot at each intersection (see attached image). </p>

<p><a href="http://i.imgur.com/rCLLa.png" rel="nofollow">http://i.imgur.com/rCLLa.png</a></p>

<p>Here is my code :</p>

<pre><code>public void mouseDragged( MouseEvent e ) {
    path2D.reset();
    path2D.moveTo(last_x, last_y);
    path2D.lineTo( mouse_x, mouse_y );

    BasicStroke bs = new BasicStroke( 10, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND );

    // g is a Graphic2D object
    g.setStroke( bs );
    g.setColor( new Color( 0.0f, 0.0f, 0.0f, 0.3f) );
    g.draw( path2D );

    repaint()
}
</code></pre>

<p>I understand that it caused by the transparency and the fact that it is not one Path that is drawn. Tried with only one Path2D instance but at each repaint the path is draw over and over and the transparency disappear.</p>

<p>Any solution ??</p>

<p>Thanks in advance !</p>
