title: Java - setting Fonts/Color in setBorder
body: <p>Is there a way I can define my own font and color schemes for Text1 AND Text2 text 
  within the setBorder method. New to java and cannot find it in the SUN tutorials.</p>
  
  <p>My code</p>
  
  <pre><code>//Create Positions Table
   JPanel SpreadPanel = new JPanel();
   SpreadPanel.setBorder(BorderFactory.createTitledBorder(" Text 1    Text 2"));
  </code></pre>
  
  <p>Regards
  Simon</p>