Using awt calls within OpenJfx context

Thiago Milczarek Sayão thiago.sayao at
Thu Oct 25 19:14:07 UTC 2018

With JavaFx that shipped with Oracle Java 10 I was able to do:


This is used to get if caps lock key is On.

With OpenJfx 11 this call produces:

java.awt.HeadlessException: null

Is there a way to get the caps lock key state with openjfx?

More information about the openjfx-dev mailing list