> <Menu.Item > ButtonPressListener.buttonPressed="driverController.doAction(tabPane);" > buttonData="New Driver" /> > </Menu.Section>
Are you asking about best practices with respect to event handling? If so, this pattern is good for brief event handlers (which often delegate any complex behavior to compiled class methods). An alternative is to use the Bindable interface to automatically map your BXML elements to class member variables. In this model, you wire up your event listeners in your initialize() method. G
