How to get rid of focus highlighting in JavaFX

Today I was asked if I know a way to get rid of the focus-highlighting of JavaFX controls (respectively buttons): Most posts and tipps regarding this issue suggesting to adding: .button:focused { -fx-focus-color: transparent; } But with this style a glow like this is still left: To get rid of this glow also often suggested… Continue Reading How to get rid of focus highlighting in JavaFX

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

First steps with JavaFX

This tutorial will introduce Clean separation of application UI and logic Using Builders supporting Fluent API Effects Layouts Property Bindings EventHandler Abstract The Golden Ratio (Golden Mean, Golden Section) is defined as φ = (√5 + 1) / 2. Objective Create an UI to find the golden section by using a slider. Add value labels and an indicator to get… Continue Reading First steps with JavaFX