title: How to change header component in TitledPane in JavaFX
body: <p>I cannot find an answer about this anywhere on the internet.</p>
  
  <p>I have an application that has to have collapsable panels, so the TitledPane and Accordion set-up in Java FX is a natural candidate.</p>
  
  <p>In the application, I need to have custom headers for the container when it's collapsed.  I see in the css document for the TitledPane that the header is really an HBox and a variety of other components.</p>
  
  <p><a href="http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#titledpane" rel="noreferrer">http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#titledpane</a></p>
  
  <p>I would like to access this component and replace it with a custom component.</p>
  
  <p>I have been using the TitledPane api's setGraphic function and setContentDisplay to GraphicOnly.  with a custom component.  However, I cannot get it to render correctly.  I've had issues with removing the arrow, and removing the space occupied by the arrow.  </p>
  
  <p>See the link below for screenshots of the desired look and how it actually looks.</p>
  
  <p><a href="http://tinypic.com/r/s1pxfn/6" rel="noreferrer">http://tinypic.com/r/s1pxfn/6</a></p>
  
  <p>How does one remove the arrow and remove the padding?</p>