I would like to run a function when a Tab is clicked. I tried to do this in my fxml but I think Tabs do not have an onAction property to call.
<Tab fx:id="Tab1" text="Tab1" onAction="#loadTab1">
</Tab>
So I get this error when I run the application:
Caused by: java.lang.UnsupportedOperationException: Cannot determine type for property.