OiO.lk Blog java Looping to get TextField values out of TilePane
java

Looping to get TextField values out of TilePane


Hey all I am having a difficult time trying to get my textfield values out of my TilePane.

The tree is this:

This is what it visually looks like:

My code:

for (Node node : Agency_Contacts.getChildrenUnmodifiable()) {
    ObservableList<Node> childrens = Agency_Contacts.getChildren();
            
    for (Node node1 : childrens) {
        if(node1 instanceof Pane) {
            ObservableList<Node> n = ((Pane) node1).getChildrenUnmodifiable();
            System.out.println(n);
        }                   
    }
    ....

Currently the n is where the tree above is from. I can not seem to break it down any further in order to get the textfields text values.

Help would be great! Thanks!



You need to sign in to view this answers

Exit mobile version