setting EventHandlers in View class from Controller
posted 3 years ago
i've just started playing around with JavaFx2 and Scala. Trying to achieve a 'Passive View' I soon ran into problems setting EventHandlers for my buttons from within the controller class, 'cause the EventHandler never gets triggered when setting it this way:
It would be nice if anybody could tell me how it is possible doing it this way instead of setting the EventHandler directly in the View - class.