posted 8 years ago
Hi guys there doesn't seem to be very many tutorials on layouts without using fxml online anyway if anybody knows the answer to this question that would be great,
my question is so in this code I created a new GridPane called root and added components a button and also a label
but then to change the positions I called GridPane.setConstraints() the thing is how is this possible? how does our GridPane root know where the items are positioned since we are using a static method of the GridPane class and not an our instance root,I thought it would make more sense to say root.setConstraints since that is the actual isntance and the actual object that contains label and button
thanks