open the Windows virtual keyboard in a Java program

后端 未结 3 1756
醉话见心
醉话见心 2020-12-20 10:02

I would like to create an event in a button.

When I click in the button, I would like to open the Windows virtual keyboard.

Can you help me with the code?

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 10:15

    I think it would be as simple as this: Runtime.getRuntime().exec("osk");

提交回复
热议问题