0
Button
の多くのノードが追加されたVBox
があります。JavaFXのVBox.getChildren()からリスト項目をキャストする
private final VBox vbox = new VBox();
private final Button b1= new Button("1");
private final Button b2= new Button("2");
private final Button b3= new Button("3");
private final Button b4= new Button("4");
vbox.getChildren().addAll(b1,b2,b3,b4);
Button
タイプにその子項目をキャストする方法はあります。あなたは生のタイプを使用する場合
ObservableList<Button> children = (ObservableList<Button>) vbox.getChildren();
甘い!私は非常に多くの異なるアプローチを試みましたが、どれもこれまでのところあなたのことは働いていませんでした。あなたの時間のおかげで、ファビアン! – Chiggiddi