JavaFX virtual keyboard


Is there such a thing? I have googled javafx virtual keyboard, but nothing seems to appear that is valid. I saw this article, but no code or example

Does anyone have prior experience with a virtual keyboard in a javafx application? I need to be able to show either a normal keyboard or numeric keypad when a textfield is focused.

11/5/2014 10:38:57 PM

Accepted Answer

Yes, there is such a thing as JavaFX virtual keyboard in the Oracle Java 8 distribution, though it is not documented or supported by Oracle outside of the embedded version of JavaFX.

However, the virtual keyboard does seem to ship with the Oracle desktop Java 8 JRE and it does seem to work there if you toggle some undocumented and unsupported system properties.


  • -Dcom.sun.javafx.isEmbedded=true

And maybe also

  • -Dcom.sun.javafx.touch=true
  • -Dcom.sun.javafx.virtualKeyboard=javafx

Some related sketchy info on the internet:

The guys over at javafxports might know more, so you could try asking there if you want more information (if you are targeting one of their devices).

5/23/2017 10:30:18 AM

if you are confused, here, catch:

1.right click your project (in Netbeans) Properties-->Run-->

3.Fill the [VM Options] with:



Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow