Custom control for Java FX - Thanks to Christian Schudt