What's the correct to make FXML members in Java 9 or 10?
问题 After upgrading to Java 10 (from 8), I'm getting these errors: InaccessibleObjectException: Unable to make field private javafx.scene.control.Button tech.flexpoint.dashman.controllers.configurator.RegistrationController.registerButton accessible: module tech.flexpoint.dashman does not "opens tech.flexpoint.dashman.controllers.configurator" to module javafx.fxml Does it mean I should make them public? Does that make the @FXML annotation essentially useless in Java 9 and 10? 回答1: Since you're