Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get Javafx fx:id from java code

1035702Aug 26 2013 — edited Sep 18 2013

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).

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2013
Added on Aug 26 2013
11 comments
16,895 views