Draw a straight line with java's graphic class
<p>I need to draw a line from two points and what I did so far is using <code>drawLine(x1,y1,x2,y2)</code>.  But what I want to do is draw a line that intersects with these two points <code>(x1,y1)</code> and <code>(x2,y2)</code>.  </p>

<p>I don't want to <em>just</em> draw a line between them, here's an image of what I have and what I want to do:</p>

<p><img src="http://i.stack.imgur.com/jgJt4.jpg" alt="Line Drawings"></p>
