JavaFX is a solution developed by Oracle to replace the outdated Swing GUI interface. So far I'm trying it and it's quite good, with some nice features that make it more user friendly such as controls that let the programmer drag and drop the elements without worrying about layouts and similar stuff.
In order to install JavaFX you only need to download the typical NetBeans IDE that can be found here.
Once you have installed it, the next step is to download the JavaFX Scene Builder which will let you view the FX project. The download link is fairly hidden in Oracle's page so you must go to JavaFXLink.
And accept the licence as shown in figure .
For this case you must choose Scene Builder 2.
Detecting number of mouse clicks on an object.
Interesting snipped of code that lets the user count the number of times a button has been pressed and activates a given action depending on that given condition. It's interesting because unlike other application where it's common place, from what I saw in JavaFX its considered an unsafe practice and as such not allowed (?).