title: Rounded borders on a JPanel
body: <p>What I've got here is a JPanel with a rounded border that is set up as such:</p>
  
  <pre><code>panel.setBorder(new LineBorder(PanelColor, 5, true));
  </code></pre>
  
  <p>The problem is, in each of the corners there are 2 diagonal opaque lines going from the outer corner to the inner corner that is the length of the border. Whatever is behind the border shows through. Is there any way to get rid of these lines and make the entire border one solid color? Thanks!</p>
  
  <p>I'd attach a picture but I don't have enough rep to do so :P</p>