Hi all,
We have a desktop application made in JavaFX. In this application we design and implement the interface using SceneBuilder, so our windows are in fxml code. To give some functional parameters to window nodes, components, we have generic methods that load this parameters information from a database and give them to their component or node. To do this, we indentify each of those components using their id:
ObservableList<Node> componentes = panel.getChildren();
Iterator<Node> iterador = componentes.iterator();
while (iterador.hasNext()){
final Node componente = iterador.next();
String idComponente = componente.getId();
(...)
Using the previous JavaFX version, this getId() method returned the fx:id specified in the fxml for this node. The problem for us is that the new JavaFX version, released with Java8, returns us the id of this component in the fxml, which is blank at this moment.
Is there any way to get this fx:id, as before? Any other ideas apart from copying the fx:id to the id in every fxml that we have? (believe me that we have a lot...).
Thanks in advance for your help.