mapping nested object from fxml to object
问题 I created the following object which should be responsible for displaying a steeringwheel in my win app. @DefaultProperty("children") public class SteeringWheel extends Region { @FXML private Circle backgroundCircle; @FXML private Circle innerCircle; @FXML private Label mylabel; public ObservableList<Node> getChildren() { return super.getChildren(); } public void setCirclesLocations() { double centerPointX = getWidth() / 2; double centerPointY = getHeight() / 2; setCircleLocation