UI logic with using JavaFX Bindings

For MQTT.fx I needed a ComboBox to enter new Topics or to choose recent topics from list. But I want the user to enter or choose only (more or less) reasonable values otherwise the “Publish”/”Subscribe” buttons should be disabled: Using the JavaFX Bindings API prevents some boilerplate code (implementing Listeners) and it is even more… Continue Reading UI logic with using JavaFX Bindings

Fluent API code formatting in Netbeans 7.2 beta

I always missed a way to format Fluent API code blocks in Netbeans properly. In Netbeans 7.1 at last there was an option to set the wrapping for chained method calls via: Preferences: Editor -> Language: Java -> Category: Wrapping Netbeans 7.1 Netbeans 7.2 Netbeans 7.2 now offers an additional option to choose whether the wrapping should take place:

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