title: How to restore the default stroke in the BasicStroke class?
body: <p>I have a program where I defined a bunch of new dash patterns and made them strokes using the <code>BasicStroke</code> class. Than I used the 
  <code>.setStroke()</code> method and made lines with my dash patterns. Now I want to be able to <code>setStroke()</code> back to the default dash pattern (a solid line). How do I do this?
  Here is my code: </p>
  
  <pre><code>    float[] dash1 = {2f, 0f, 2f};
          float[] dash2 = {1f, 1f, 1f};
          float[] dash3 = {16f, 10f, 4f, 10f};
          float[] dash4 = {4f, 4f, 1f};
  
          Graphics2D g2d = (Graphics2D) g.create();
          g2d.drawLine(20, 40, 250, 40);
  
          BasicStroke bs1 = new BasicStroke(1, BasicStroke.CAP_BUTT,
                  BasicStroke.JOIN_ROUND, 1.0f, dash3, 0f);
  
          BasicStroke bs2 =new BasicStroke(1, BasicStroke.CAP_BUTT,
                  BasicStroke.JOIN_ROUND, 1.0f, dash3, 16f);
  
          BasicStroke bs3 = new BasicStroke(1, BasicStroke.CAP_BUTT,
                  BasicStroke.JOIN_ROUND, 1.0f, dash3, 2f);
  
          BasicStroke bs4 = new BasicStroke(1, BasicStroke.CAP_BUTT,
                  BasicStroke.JOIN_ROUND, 1.0f, dash4, 2f);
  
  
  
          g2d.setStroke(bs1);
          g2d.drawLine(20, 80, 250, 80);
  
          g2d.setStroke(bs2);
          g2d.drawLine(20, 120, 250, 120);
  
          g2d.setStroke(bs3);
          g2d.drawLine(20, 160, 250, 160);
  
          g2d.setStroke(bs4);
          g2d.drawLine(20, 200, 250, 200);
  </code></pre>