本文整理了Java中javafx.scene.control.Label.setMinHeight()
方法的一些代码示例,展示了Label.setMinHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setMinHeight()
方法的具体详情如下:
包路径:javafx.scene.control.Label
类名称:Label
方法名:setMinHeight
暂无
代码示例来源:origin: torakiki/pdfsam
public DashboardTile(String title, String description, Node graphic) {
getStyleClass().addAll("dashboard-modules-tile");
Label titleLabel = new Label(title);
titleLabel.getStyleClass().add("dashboard-modules-tile-title");
if (nonNull(graphic)) {
titleLabel.setGraphic(graphic);
}
Label textLabel = new Label(description);
textLabel.getStyleClass().add("dashboard-modules-tile-text");
textLabel.setMinHeight(USE_PREF_SIZE);
VBox topTile = new VBox(5);
topTile.getChildren().addAll(titleLabel, textLabel);
button.getStyleClass().add("dashboard-modules-invisible-button");
button.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
armed.bind(button.armedProperty());
getChildren().addAll(new StackPane(topTile, button));
setMaxHeight(USE_PREF_SIZE);
setMinHeight(USE_PREF_SIZE);
}
代码示例来源:origin: PhoenicisOrg/phoenicis
public ConfirmDialog build() {
final ConfirmDialog dialog = new ConfirmDialog();
dialog.initOwner(owner);
dialog.setTitle(title);
dialog.setHeaderText(title);
dialog.setContentText(message);
dialog.setYesCallback(yesCallback);
dialog.setNoCallback(noCallback);
dialog.setResizable(resizable);
dialog.getDialogPane().getChildren().stream()
.filter(node -> node instanceof Label)
.map(node -> (Label) node)
.forEach(label -> label.setMinHeight(Region.USE_PREF_SIZE));
return dialog;
}
}
内容来源于网络,如有侵权,请联系作者删除!