I\'m developing a JavaFX8 application in Scala but I couldn\'t figure out how to pass a method reference to an event handler. To clarify, I\'m not using ScalaFX library but
If you want a method reference that also takes the class instance as a parameter, for instance like String::length in Java, you can do (_:String).length which is equivalent to (s:String) => s.length().
The types of these are in Java Function and in Scala thus String => Int.