Annotation Interface Resource


@Target(FIELD) @Retention(RUNTIME) public @interface Resource
This annotation is used to mark a field as a resource. If a ResourceBundle field in a controller/component is marked with this annotation, it will be used as the resources of the controller/component when loading its FXML.