JavaFX. Register eventHandler in custom class
问题 I try register eventHandler in my custom class. I don't know what interface or methods I have to implement for having addEventHandler method in my custom class. For this reason my Model class extends Rectangle ( Rectangle class has addEventHandler mechanism). Also I don't know why assigned source object not working (please see comment in Controller class). Creating custom events I make by this tutorial: https://stackoverflow.com/a/27423430/3102393. Project Structure Controller package sample;