title: How to create custom components in JavaFX 2.0 using FXML?
body: <p>I can't seem to find any material on the subject. To give a more concrete example, let's say I want to create a simple component that combines a checkbox and a label. Then, populate a ListView with instances of this custom component.</p>
  
  <p>UPDATE:
  see my answer for complete code</p>
  
  <p>UPDATE 2:
  For an up-to-date tutorial, please, consult <a href="http://docs.oracle.com/javafx/2/fxml_get_started/custom_control.htm" rel="noreferrer">the official documentation</a>. There was a lot of <a href="http://docs.oracle.com/javafx/2/fxml_get_started/whats_new2.htm" rel="noreferrer">new stuff</a> that was added in 2.2. Finally, the <a href="http://docs.oracle.com/javafx/2/api/javafx/fxml/doc-files/introduction_to_fxml.html" rel="noreferrer">Introduction to FXML</a> covers pretty much everything you need to know about FXML.</p>
  
  <p>UPDATE 3:
  Hendrik Ebbers made an extremely helpful <a href="http://www.guigarage.com/2012/11/custom-ui-controls-with-javafx-part-1/" rel="noreferrer">blog post</a> about custom UI controls.</p>