GridPane.setConstraints(chip5,1,HPos.RIGHT,VPos.TOP); //I want to set // margin for chip5 from top (for example 5px)
在GridPane中可以吗?
GridPane.setMargin(chip5,new Insets(5,0));