title: gridpane javafx node column span how to use?
body: <p>hey i have a gridpane and for one of the nodes i want it to be able to take up the whole row.</p>
  
  <p>but i cant seem to figure out how to use GridPane.setColumnSpan(node, column span);</p>
  
  <p>heres my code </p>
  
  <pre><code>grid.getChildren().addAll(animalFields(animal));
          grid.setHgap(10);
          grid.addRow(2, status, neutered, chipped, vaccinated, reserved);
          grid.addRow(3, statusCb,new HBox(neuteredYes, neuteredNo), new HBox(chippedYes, chippedNo), new HBox(vaccinatedYes, vaccinatedNo), new HBox(reservedYes, reservedNo));
          grid.addRow(4, new Label("people interested"));
          grid.addRow(6, sponsorsTable(((Adoption) animal.getAdoption()).getInterested()));
          GridPane.setColumnSpan(sponsorsTable(((Adoption) animal.getAdoption()).getInterested()), 6);
          grid.addRow(7, hBox2);
  </code></pre>
  
  <p>this is how it looks now</p>
  
  <p><a href="https://i.stack.imgur.com/oRiN1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oRiN1.png" alt="Current look"></a></p>
  
  <p>this is what i want it to look like</p>
  
  <p><a href="https://i.stack.imgur.com/97Wuy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/97Wuy.png" alt="enter image description here"></a></p>
  
  <p>id be grateful for any help. thanks</p>