JavaFX on Raspberry Pi: runfxapp

Running JavaFX Apps on RaspberryPi with JDK 8 needs still some command “overhead” like: sudo /opt/jdk1.8.0/bin/java -Djavafx.platform=eglfb -cp \ /opt/jdk1.8.0/jre/lib/jfxrt.jar:/tmp/JavaFXSamples/Stopwatch.jar \ stopwatch.MainScreen To start apps more conveniently I wrote a small bash-skript: runfxapp (as shell-skript code is ugly I skip posting it here ;-)) Copy this skript to somewhere on $PATH (e.g. /usr/local/bin) and set… Continue Reading JavaFX on Raspberry Pi: runfxapp

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