1 Reply Latest reply: Nov 16, 2012 4:29 AM by daniel RSS

    How to get number of cols and rows of gridPane?

    user13335782
      How to get number of cols and rows of gridPane?
        • 1. Re: How to get number of cols and rows of gridPane?
          daniel
          Hi,

          This is what we use in SceneBuilder:
          #rows = Max (gridpane.getRowConstraints().size(), 
                               Max[for node n in gridpane.getChildren()](
                                     Max(0, GridPane.getRowIndex(n)) + Max(1, GridPane.getRowSpan(n))
                               )
                        )
          -- daniel