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).
TreeView
TreeItem
MouseClicked
CellFactory
Any pointers to code fragments addressing this type of scenario?
1.4m articles
1.4m replys
5 comments
57.0k users