官网:https://kordamp.org/ikonli/ Ikonli 提供了可以在 Java 应用程序中使用的图标包。目前支持 Swing 和 JavaFX UI 工具包。 其中ikonli有非常多图标库,下面我只显示fontawesome,想要其他图标可引入对应依赖即可。 这里我演示使用javafx+java 8:ikonli-javafx-12.2.0 (JDK 11+)或ikonli-javafx-2.6.0 (JDK 8)...
What I like about Ikonli is that it integrates so seamlessly with the existing JavaFX API. An icon is simply an extension of the “Text” node (duh!) and it comes with styleable properties. There are properties for the icon itself, the icon “code”, for its color and for its size....
*/ package org.kordamp.ikonli.javafx; import javafx.beans.property.IntegerProperty; import javafx.beans.property.ObjectProperty; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.css.CssMetaData; import javafx.css.Styleable; import javafx.css...
The following examples show how to use org.kordamp.ikonli.javafx.FontIcon. 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...