title: How to perform an action by selecting an item from ListView in JavaFX 2
body: <p>I would like to have an action performed when I select an item from my <code>listview</code> in javafx 2.
  I use a Netbeans JavaFX fxml application and SceneBuilder.
  The <code>OnMouseClicked</code> method in SceneBuilder did not work. It gave me back an error that it can't find the method that I have already declared.</p>
  
  <p>Can someone tell me how they managed to get it to work?</p>