title: Problems with newline in Graphics2D.drawString
body: <p><code>g2</code> is an instance of the class <code>Graphics2D</code>. I'd like to be able to draw multi-line text, but that requires a newline character. The following code renders in one line.</p>
  
  <pre><code>String newline = System.getProperty("line.separator");
  g2.drawString("part1\r\n" + newline + "part2", x, y);
  </code></pre>