I created a new custom control containing labels, text field and a button. How can I set custom control's Button "onAction" method in the FXML file?
Example code:
<BorderPane fx:controller="fxmlexample.MyController" xmlns:fx="http://javafx.com/fxml"> <top> <MyCustomComponent onButtonAction="#myCustomButtonAction"> </MyCustomComponent> </top>