title: Titled separator in java swing
body: <p>I want to show titled separator in java swing application. Something like</p>
  
  <blockquote>
    <p>-------Text-------</p>
  </blockquote>
  
  <p>I found some third party libraries providing this functionality:</p>
  
  <ul>
  <li><a href="http://www.jidesoft.com/javadoc/com/jidesoft/swing/TitledSeparator.html" rel="nofollow">http://www.jidesoft.com/javadoc/com/jidesoft/swing/TitledSeparator.html</a></li>
  <li><a href="http://www.jaxfront.org/member/java-core-api/com/jgoodies/forms/builder/PanelBuilder.html" rel="nofollow">http://www.jaxfront.org/member/java-core-api/com/jgoodies/forms/builder/PanelBuilder.html</a></li>
  </ul>
  
  <p>But I'm interested in a way without using any third party api. Can we do this by extending JSeparator? How else can we do that? </p>