Home » Archives for Jens Deters

Author Archives: Jens Deters

Jens Deters is a Senior Software Developer working in the domain of Aviation Authorities. His main objectives are RIA and Desktop Applications also he loves to play with IoT related stuff.

MQTT.fx 1.6.0 is released!

Here’s the latest MQTT.fx release: MQTT.fx 1.6.0!                     Support for Google Cloud IoT! A few weeks ago some guys from the Google IoT Team asked me to implement support for the all new Google Cloud IoT. And I am very happy to announce that MQTT.fx 1.6.0 is the first client to support Google ...

Read More »

dockerw – A simple Docker command wrapper for the rest of us

I am regularly working on Docker images and have to play with different settings. Thus I periodically find myself in the “build, run, clean-up, change something, re-build, run, …” rat race. dockerw is a little tool for working with Docker images and containers. And it aims to help you (and me ;-)) to build and (locally) run Docker images while it hides all the ...

Read More »

Button of Choice: Use ToggleButtons as RadioButtons

For MQTT.fx I wanted to use ToggleButtons to e.g. choose the de coding of a MQTT Message or the QoS Level: I found out that in context of a ToggleGroup ToggleButtons behave different than RadioButtons in terms of selection/deselection: unlike RadioButtons ToggleButtons can still be set to unselected state. A RadioButton extends ToggleButton and overrides fire() (which is invoked when a user gesture indicates that an ...

Read More »

Using the esp8266 as host for I2C sensors

For my outdoor sensors I used an RaspberryPi with BMP180 + TSL2561 connected via I2C transferring the sensor data as MQTT messages. During an IoT Meetup Session at codecentric office in Frankfurt we discussed the usage of an esp8266 and I was thrilled to get one and play with it. It turns out very quickly that the esp8266 is a really great ...

Read More »

SweetHomeHub: Home Control with Raspberry Pi and MQTT – Part 1

Since quite a long time I am working on my universal Raspberry Pi based Intertechno-Remote (see former posts 1 2 3 4): I tried different approaches to trigger/control my remote control service via a custom HTTPServer/-Handler and a simple Vert.x verticle. Since MQTT v3.1.1 turns out as on of the de-facto standard protocols for the IoT I also implemented an ...

Read More »

JFXPanel and FX Platform Thread pitfalls

The JFXPanel is a component to embed JavaFX content into (legacy ;-)) Swing applications. Basically it makes it very easy to combine both tookits, but there are some pitfalls to master: Both UI Toolkits are single threaded (Swing: EDT + JavaFX: FX Platform Thread). When used together you have to deal with these two threads, e.g. javafx.embed.swing.SwingFXUtils.runOnFxThread(Runnable runnable) or javafx.embed.swing.SwingFXUtils.runOnEDT(Runnable ...

Read More »

How to allow users to customize the UI

Idea Take advantage of the declarative design pattern of JavafX/FXML and allow users to customize a certain view without any coding just by opening it with e.g. SceneBuilder to re-arrange the layout or add new controls or even change the style according to the users needs. The FXML file + CSS can be basically be placed whereever they are reachable ...

Read More »

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 tips regarding this issue suggest to add: .button:focused { -fx-focus-color: transparent; } But with this style, a glow like this is still left: To get rid of this ...

Read More »