1

I am working with a GridPane layout and I require it to (by default) have a fixed number of rows and columns. In certain situations, I would like the GridPane to expand in the number of rows and columns. I would like the GridPane to have an extra row/column by placing an entire empty row/column on the outer sides of the GridPane.

This feature exists in the JavaFX Scene Builder by right clicking on the GridPane and selecting GridPane, then it will show a list of options: Add Row Above, Add Row Below, Add Column After, Add Column Before. The results of each of these options are what I desire. But I have looked through the API and there does not seem to be any relevant behaviour.

If there is a layout that you seem will work, please let me know!

P.S., I would like to post an image to show what I mean but I do not have 10 reputation posts. :( The instructions has been listed above or here: http://i.imgur.com/asqaZEe.png

Thank you very much, Matt

4

0 回答 0