I am trying to implement a ScalaFX TreeView
representing a directory structure, with some TreeItem
elements in the tree structure able to capture a MouseClicked
event so that I can do further operations (subsequently show the contents of that directory). It seems that the only way to catch events is to adopt CellFactory
in this relation. I am not sure how to get my head around this with such limited available documentation (even in JavaFX side).
Any pointers to code fragments addressing this type of scenario?