Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+1 vote

When adding a button to a gridpane we use gridPane.add(btn1, 0,0,1,1);. What do the last two integer arguments do?

asked in CSC305 Fall 2019 by (333 points)

1 Answer

0 votes
  • I am not sure if this answers your question but the first two integer represents the column and row index. The last two represents the columnSpan and rowSpan (the number of rows the child's layout area spans horizontally). You can read more about it here:


answered by (420 points)