本文整理了Java中javafx.scene.layout.VBox.setPrefWidth()
方法的一些代码示例,展示了VBox.setPrefWidth()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VBox.setPrefWidth()
方法的具体详情如下:
包路径:javafx.scene.layout.VBox
类名称:VBox
方法名:setPrefWidth
暂无
代码示例来源:origin: stackoverflow.com
layout.setPrefWidth(300);
layout.setAlignment(Pos.CENTER);
layout.getChildren().addAll(button, response);
代码示例来源:origin: stackoverflow.com
reporter
);
layout.setPrefWidth(500);
代码示例来源:origin: stackoverflow.com
VBox vbox = new VBox();
vbox.setPrefWidth(400);// prefWidth
vbox.setPrefHeight(500);// prefHeight
代码示例来源:origin: org.copper-engine/copper-monitoring-client
@Override
public void handle(MouseEvent mouseEvent) {
filterAreaPanes.setPrefWidth(allFilterParent.getParent().sceneToLocal(mouseEvent.getSceneX(), mouseEvent.getSceneY()).getX());
}
});
代码示例来源:origin: stackoverflow.com
root.setSpacing(10);
root.setPadding(new Insets(10));
root.setPrefWidth(300);
代码示例来源:origin: stackoverflow.com
leftSide.setPrefWidth(300);
代码示例来源:origin: com.github.almasb/fxgl-base
/**
* @return menu content containing a list of credits
*/
protected final MenuContent createContentCredits() {
log.debug("createContentCredits()");
ScrollPane pane = new FXGLScrollPane();
pane.setPrefWidth(app.getWidth() * 3 / 5);
pane.setPrefHeight(app.getHeight() / 2);
pane.setStyle("-fx-background:black;");
VBox vbox = new VBox();
vbox.setAlignment(Pos.CENTER);
vbox.setPrefWidth(pane.getPrefWidth() - 15);
List<String> credits = new ArrayList<>(getSettings().getCredits().getList());
credits.add("");
credits.add("Powered by FXGL " + FXGL.getVersion());
credits.add("Author: Almas Baimagambetov");
credits.add("https://github.com/AlmasB/FXGL");
credits.add("");
for (String credit : credits) {
vbox.getChildren().add(getUIFactory().newText(credit));
}
pane.setContent(vbox);
return new MenuContent(pane);
}
代码示例来源:origin: stackoverflow.com
VBox vBox = new VBox();
vBox.setPrefWidth(100);
Button btn1 = new Button("Short");
Button btn2 = new Button("Super Long Button");
btn1.setMinWidth(vBox.getPrefWidth());
btn2.setMinWidth(vBox.getPrefWidth());
vBox.getChildren().addAll(btn1, btn2);
代码示例来源:origin: stackoverflow.com
layout.getChildren().addAll(grid, instructions);
layout.setStyle("-fx-padding: 10; -fx-vgap: 10; -fx-background-color: cornsilk;");
layout.setPrefWidth(300);
stage.setScene(scene);
stage.show();
代码示例来源:origin: stackoverflow.com
nameList.setPrefWidth(150);
代码示例来源:origin: stackoverflow.com
pane.setPrefWidth(200);
return pane;
代码示例来源:origin: com.aquafx-project/aquafx
ImageView dotImage;
VBox texts = new VBox();
texts.setPrefWidth(95);
texts.setAlignment(Pos.CENTER_LEFT);
final Label type = new Label(item);
代码示例来源:origin: stackoverflow.com
menu.setId("menu");
menu.prefHeightProperty().bind(root.heightProperty());
menu.setPrefWidth(200);
代码示例来源:origin: stackoverflow.com
vbox.setSpacing(20);
vbox.setPrefHeight(Double.MAX_VALUE);
vbox.setPrefWidth(400);
代码示例来源:origin: stackoverflow.com
base.setPrefWidth(width);
base.setPrefHeight(height);
base.setStyle("-fx-border-width: 1;-fx-border-color: red");
代码示例来源:origin: com.aquafx-project/aquafx
VBox spacer = new VBox();
spacer.setPrefHeight(140);
spacer.setPrefWidth(200);
grid.add(spacer, 3, 6);
CheckBox chekShowState = new CheckBox("WLAN-Status in der \n" + "Men\u00FCleiste anzeigen");
内容来源于网络,如有侵权,请联系作者删除!