Darryl Burke wrote:You didn't test that, did you? ;)
No, I didn't test it on AWT, but I did on JavaFX 8, and it worked
But you are right, I likely mislead OP without testing it, luckily you putted us on a right track, so OP knows the right solution to follow