The code was adjusted according to your notes but ...
# tornadofx
a
The code was adjusted according to your notes but here's what I ended up with -