0
我想它会好起来,当数字变量被改变时,但是当增加时按钮从窗口中消失。如何解决它?另外如何把酒吧降到“10 $”的水平,所以他们将在同一排?Java FX超出窗口的屏幕
这里是我的代码:
VBox vboxBottom = new VBox();
HBox hboxBottomElements = new HBox(15);
HBox hboxBottomMain = new HBox(0);
Region region = new Region();
region.setPrefWidth(500);
hboxBottomElements.getChildren().addAll(visaLabel, separator2, adLabel, separator3, governRelationStatus, separator4, region, next);
hboxBottomElements.setPadding(new Insets(5));
vboxBottom.getChildren().addAll(separator1, new Group(hboxBottomElements));
vboxBottom.setPadding(new Insets(3));
hboxBottomMain.getChildren().addAll(new Group(moneyBox), vboxBottom);
hboxBottomMain.setPadding(new Insets(3));
layout.setBottom(hboxBottomMain);
如果您希望按钮是在的右边缘窗口中,使用锚定窗格。 –