title: Drawing a bold line with drawLine() when extending Canvas
body: <p>Given the following : </p>
  
  <pre><code>public class NavigationCanvas extends Canvas implements MouseListener,MouseMotionListener,KeyListener  {
  
      public void paint(Graphics g)
      {
  
          // some code 
          // more 
          // ...
  
          g.setColor(Color.black);
  
          //  drawing each Line
          for (int i=0; i&lt;length; i++) 
          {
              Line2D currLine  = m_lines.get(i);
  
              g.drawLine((int)currLine.getX1(),(int)currLine.getY1(),
                  (int)currLine.getX2(),(int)currLine.getY2());   
              g.drawLine((int)currLine.getX1()+1,(int)currLine.getY1()+1
                  ,(int)currLine.getX2()+1,(int)currLine.getY2()+1);
              g.drawLine((int)currLine.getX1()+2,(int)currLine.getY1()+2
                  ,(int)currLine.getX2()+2,(int)currLine.getY2()+2);
          }
  
  
      }       
      ...
  }
  </code></pre>
  
  <p>When I draw the lines of <code>currLine</code> I get this : </p>
  
  <p><img src="https://i.stack.imgur.com/OBQ5S.gif" alt="enter image description here"></p>
  
  <p>As you can see , I made 3 calls to <code>drawline()</code> , to make it more bold ,but it still doesn't quite 
  as I wanted . </p>
  
  <p>How can I draw one bold line ? </p>