简体   繁体   中英

How to use FontAwesome on fxml JavaFX without Maven

I'm using fontawesomefx-8.9 because I couldn't find a tutorial for adding a newer version to the project(I don't even know how to download it from Bintray). The problem is when I add an icon it shows up like an empty rectangle . I've added the library to both SceneBuilder and the project library. I've tried changing the IDE but it's the same.

Here is the project , I'm still learning Java btw.

Maven uses The Central Repository to download dependency automatically for you from there. I would recommend you to embrace maven or another dependency management tool for java. It will makes you life way easier.

But if you can't use dependency management. For some reason unknown to me. You still can download jars manually from the central repository. In your case choose any published version of fontawesomefx , download the jar(s) and add them to your project's classpath.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM