title: Java add a Dashed or dotted border to a JPanel
body: <p>I am having problems with this thing: can I, in some way, add a dashed (or dotted, no matter) border to a JPanel?</p>
  
  <p>I searched SO questions but seems that no one asked this before.</p>
  
  <p>I'm wondering if is there any class to use. actually I am using:</p>
  
  <pre><code>myPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
  </code></pre>
  
  <p>Obviously this is a standard class that give only few standard borders, no one is useful for me.</p>