一个新手!我知道这是我整个项目中最容易做的事情,但出于一些愚蠢(我是愚蠢)的原因,我被困在这里。我想使用 HBox 将按钮放置在特定的 (x,y) 坐标处。请帮忙:
//buttons
//HBox hbox = new HBox(200);
Button button = new Button(" Add to meal ");
//get info on all customs
Button button1 = new Button( " Add to list ");
//hbox.getChildren().addAll(button);
//layout
//add to meal button
button.setLayoutX(125.0d);
button.setLayoutY(325.0d);
//add to list button
button1.setLayoutX(130.0d);
button1.setLayoutY(520.0d);