3

アイテムから HBox をクリアしようとしています。hBox.getChildren().clear() を使用してみました。

for(Node child: hBox.getChildren()){
    hBox.getChildren().remove(child);
}

しかし、どちらも機能しません。何か案は?

4

1 に答える 1