本文整理了Java中javafx.scene.control.Button.setPadding()
方法的一些代码示例,展示了Button.setPadding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setPadding()
方法的具体详情如下:
包路径:javafx.scene.control.Button
类名称:Button
方法名:setPadding
暂无
代码示例来源:origin: speedment/speedment
@Override
public Button createNode() {
final Button btn = new Button(text, icon.view());
btn.setTextAlignment(TextAlignment.CENTER);
btn.setAlignment(Pos.CENTER);
btn.setMnemonicParsing(false);
btn.setLayoutX(10);
btn.setLayoutY(10);
btn.setPadding(new Insets(8, 12, 8, 12));
btn.setOnAction(handler);
btn.setTooltip(new Tooltip(tooltip));
return btn;
}
}
代码示例来源:origin: com.powsybl/powsybl-gse-util
.stack(Glyph.createAwesomeFont('\uf055').color("limegreen").size("0.8em"));
createFolderButton = new Button("", createFolderGlyph);
createFolderButton.setPadding(new Insets(3, 5, 3, 5));
createFolderButton.disableProperty().bind(selectedFolder.isNull());
createFolderButton.setOnAction(event ->
javafx.scene.Node deleteFolderGlyph = Glyph.createAwesomeFont('\uf1f8').size(ICON_SIZE);
deleteNodeButton = new Button("", deleteFolderGlyph);
deleteNodeButton.setPadding(new Insets(3, 5, 3, 5));
deleteNodeButton.disableProperty().bind(selectedNode.isNull().or(deleteMenuItemDisableProperty));
ObservableList<TreeItem<N>> selectedItems = tree.getSelectionModel().getSelectedItems();
内容来源于网络,如有侵权,请联系作者删除!