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 setContinue reading

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: 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 AwesomeIconsContinue reading

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