Initialised the LIstener in the Initilisation method instead of an onclick function

This commit is contained in:
YaFedImYaEatIm
2016-10-01 18:14:44 +13:00
parent 1cdc1f387c
commit a1f02b7cfb
3 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
<TextFlow fx:id="textArea" maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="289.0" prefWidth="364.0" textAlignment="JUSTIFY" />
</content>
</ScrollPane>
<TreeView fx:id="treeView" onMouseClicked="#changeView" prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1">
<TreeView fx:id="treeView" prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1">
<GridPane.margin>
<Insets bottom="10.0" left="10.0" right="10.0" />
</GridPane.margin>