‘Font Awesome’ Icons with JavaFX: minor updates

Refer for latest updates here. Hi, some minor FontAwesomeFX updates: The AwesomeDude now provides convenience methods to add an AwesomeFont-Icon to existing Labeled-controls and MenuItems by setting the graphic node: labeled.setGraphic(createIconLabel(icon,iconSize)); Recall that direct subclasses of Labeled are ButtonBase, Cell, Label, TitledPane and their friends (by now I have not tested all combination). setIcon(Labeled labeled,… Continue Reading ‘Font Awesome’ Icons with JavaFX: minor updates

‘Font Awesome’ Icons with JavaFX revisited

Refer for latest updates here. Hi, while melting away during the day in the office, it is now cool enough to revisit FontAwesome and to adjust my little project to support FontAwesome version 3.2.1. Thus: Major Changes: Added all new version 3.2.1 icons (now 361 icons in total). Removed leading “ICON_” from AwesomeIcon Enum (AwesomeIcon.GEARS… Continue Reading ‘Font Awesome’ Icons with JavaFX revisited

Using ‘Font Awesome’ Icons with JavaFX [Update 2]

Refer for latest updates here. For a more convenient usage I have created a Maven Artifact of my little project (should be available via Maven Central). Dependency to WebJar Maven-Repo is included, thus you just have to add: <dependency> <groupId>de.jensd</groupId> <artifactId>fontawesomefx</artifactId> <version>1.0.0</version> </dependency>

Using ‘Font Awesome’ Icons with JavaFX [Update 1]

Refer for latest updates here. I have revisited the code and made some improvements: Get the complete source code here: https://bitbucket.org/Jerady/fontawesomefx Now using WebJar Maven-Repo instead of “/font/awesome.ttf” <dependency> <groupId>org.webjars</groupId> <artifactId>font-awesome</artifactId> <version>3.0.0</version> </dependency> Absolute Path to Awesome Font is now /META-INF/resources/webjars/font-awesome/3.0.0/font/fontawesome-webfont.ttf AwesomeIcons class is now an Character-Enum instead of static Strings mappings public enum AwesomeIcons… Continue Reading Using ‘Font Awesome’ Icons with JavaFX [Update 1]

Using ‘Font Awesome’ Icons with JavaFX

Refer for latest updates here. Dave Gandy has created a incredible cool icon font called Font Awesome. These font icons perfectly fit into JavaFX Apps as: all these beautiful icons are scalable vector graphics each icon (unicode character) can be styled with css incredible lightweight (one font 249 icons) Load the “Awesome Font” Font.loadFont(App.class.getResource(“/fonts/awesome.ttf”). toExternalForm(),… Continue Reading Using ‘Font Awesome’ Icons with JavaFX