title: How to .setStroke(BasicStroke)?
body: <p>I've got the following problem: I want to create a new BasicStroke and set it on a Graphics2D object. This is the code I wrote for that problem:</p>
  
  <pre><code>    BasicStroke stil = new BasicStroke(zo.getLinienbreite(),
          BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER);
      g2d.setStroke(stil);
  </code></pre>
  
  <p>But next to the error that <em>the constructor BasicStroke(float, int, int) is undefined</em> (which actually isn't if I'm reading the documentation right), it says that "<em>The method setStroke(Stroke) in the type Graphics2D is not applicable for the arguments (BasicStroke)</em>".</p>