The question seems simple, but there is a specific way I have to implement my code that is causing confusion. So in step #3 I need to register the source object with the event h
to register ButtonHandler with btn1 as pointed out by @c0der btn1.setOnAction(new ButtonHandler());
ButtonHandler
btn1.setOnAction(new ButtonHandler());