There is a VBox in which there are dozens of Label elements, how can I search for them?

    1 answer 1

    Calling method:

    ObservableList<Node> javafx.scene.layout.Pane.getChildren() 

    You get the ObservableList collection object, and in it it’s already a trivial task to conduct a search. You can somehow sort through the collection or use the standard index search method (If known) ...

    • Thanks, I also thought to just sort out all the child elements, but I hoped that there was already a tool :) - jessez
    • @jessez my advice to you is to use stream if the collection is really not small and parallel it if necessary - Peter Slusar