October 22, 2024
Chicago 12, Melborne City, USA
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:

enter image description here

This is what it visually looks like:

enter image description here

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

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video