title: How to trigger event when double click on a tree node
body: <p>I have this code which creates new tab in a remote Java Class.</p>
  
  <pre><code>treeView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener&lt;TreeItem&lt;String&gt;&gt;()
          {
              @Override
              public void changed(ObservableValue&lt;? extends TreeItem&lt;String&gt;&gt; observable, TreeItem&lt;String&gt; oldValue, TreeItem&lt;String&gt; newValue)
              {
                  System.out.println("Selected Text : " + newValue.getValue());
                  // Create New Tab
                  Tab tabdata = new Tab();
                  Label tabALabel = new Label("Test");
                  tabdata.setGraphic(tabALabel);
  
                  DataStage.addNewTab(tabdata);
              }
          });
  </code></pre>
  
  <p>Can you tell me how I can modify the code to open new tab when I double click on a tree node. In my code the tab is opened when I click once. What event handler do I need?</p>