11 Replies Latest reply: Sep 18, 2013 5:45 AM by James_D RSS

    Get Javafx fx:id from java code


      Hi guys,


      Is there a way to get fx:id property from FXML file in java code ?


      getId method gives me a CSS id.   idProperty of Node also contains CSS id....


      Same thing with ToggleGroup. Is there a way to have fx:id of toggleGroup from FXML in java code?


      P.S. - I dont want to inject these values in controller. I'm trying to build a "generic" controller that will know how to handle multiple forms (FXMLs).