title: Detect doubleclick on ROW of TableView JavaFX 2
body: <p>I've been looking around and have noticed the response given on this post:
  <a href="https://stackoverflow.com/questions/26563390/detect-doubleclick-on-row-of-tableview-javafx">Detect doubleclick on row of TableView JavaFX</a></p>
  
  <p>However, this post uses lambda expressions and I'm unsure how to convert these to be used in JavaFX 2 code. My main goal is to be able to click a row, and then pop up a new window that has the information that was stored in that row. As long as I can get the Callback working, I will be able to take it from there! Any advice would be appreciated.</p>
  
  <pre><code>table.setRowFactory( tv -&gt; {
      TableRow&lt;MyType&gt; row = new TableRow&lt;&gt;();
      row.setOnMouseClicked(event -&gt; {
          if (event.getClickCount() == 2 &amp;&amp; (! row.isEmpty()) ) {
              MyType rowData = row.getItem();
              System.out.println(rowData);
          }
      });
      return row ;
   });
  </code></pre>