Can't set the value of a static TextField in javafx [duplicate]
问题 This question already has an answer here : javafx 8 compatibility issues - FXML static fields (1 answer) Closed 2 years ago . I'm working on a program for Insurance purposes and there I've a textfield called Reference Key this reference key is generated randomly every time I View the panel the other Scenes and classes needs this Reference Key , so I've made it static so that all the classes can reach this Instance directly ! My problem is that when I set the text for the textfield I get an