Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Androidにデプロイするjavafxアプリケーションがあり、テキストフィールドがありますが、デフォルトのキーボード(文字、数字、記号)を表示する代わりに、テンキーを表示したいだけです。どうやってするの?
がある場合はTextField、次を呼び出すことができます。
TextField
text.getProperties().put("vkType", "numeric");
それを機能させるために使用する必要があることに注意してください-Dcom.sun.javafx.isEmbedded=true -Dcom.sun.javafx.virtualKeyboard=javafx。
-Dcom.sun.javafx.isEmbedded=true -Dcom.sun.javafx.virtualKeyboard=javafx