Java Code Examples for javafx.scene.control.Hyperlink#setMinHeight()
The following examples show how to use
javafx.scene.control.Hyperlink#setMinHeight() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UserDetail.java From DashboardFx with GNU General Public License v3.0 | 5 votes |
@Override public Node action() { Hyperlink link = new Hyperlink(); link.textProperty().bind(super.textProperty()); link.setMinHeight(30); link.setOnMouseClicked(event -> popOver.show(link, 0)); return link; }
Example 2
Source File: ChooseColumnsPane.java From pattypan with MIT License | 4 votes |
/** * Adds checkboxes with wikitemplate fields. * * @param templateName name of wikitemplate * @return true, if template exists */ private boolean showTemplateFields(String templateName) { Template template = Settings.TEMPLATES.get(templateName); Hyperlink docLink = new Hyperlink(Util.text("choose-columns-template-doc")); docLink.setMinHeight(25); docLink.setOnAction(event -> { Util.openUrl("https://commons.wikimedia.org/wiki/Template:" + template.name + "/doc"); }); templateDescContainer.getChildren().clear(); templateDescContainer.getChildren().add(new HBox(10, new WikiLabel("{{" + template.name + "}}") .setClass("header") .setAlign("left"), docLink )); templateDescContainer.getChildren().add( new WikiLabel("choose-columns-template-intro") .setAlign("left") .setHeight(70)); HBox headersContainer = new HBox(10); headersContainer.getChildren().addAll( new WikiLabel("choose-columns-fields-name") .setClass("bold") .setWidth(200, 495) .setHeight(35), new WikiLabel("choose-columns-radio-buttons") .setClass("bold") .setWidth(150) .setHeight(35), new WikiLabel("choose-columns-value") .setClass("bold") .setWidth(50, 500) .setHeight(35)); templateDescContainer.getChildren().add(headersContainer); for (TemplateField tf : template.variables) { templateDescContainer.getChildren().add(tf.getRow()); } return true; }