Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger keyboard for swing text fields on mobile #110

Open
oeway opened this issue Oct 14, 2020 · 2 comments
Open

Trigger keyboard for swing text fields on mobile #110

oeway opened this issue Oct 14, 2020 · 2 comments

Comments

@oeway
Copy link

oeway commented Oct 14, 2020

One nice thing about awt is that the text field are implemented as <input> which can trigger the virtual keyboard on touchscreen devices. Wondering if it's possible to do the same for swing text fields.

@oeway
Copy link
Author

oeway commented Oct 25, 2020

FYI: It seems the swing text field on Android device can trigger the virtual keyboard.

@ghost
Copy link

ghost commented Nov 2, 2020

Didn't work for me. I have Swing text fields, but they
don't trigger the soft keyboard. You can try on a tablet.
I tried with an Apple iPad and a HUAWEI tablet:

Screenshot from HUAWEI tablet:
no_soft_keyboard_small
http://www.jekejeke.ch/example04/page.html

On a side note, CheerpJ seems to work fine with Chrome, Safari on
Android and IOs devices. But didn't see a virtual keyboard triggered.
As an extrem solution was thinking of porting the JavaFX keyboard:

JavaFX virtual keyboard
https://stackoverflow.com/questions/26768523/javafx-virtual-keyboard

But this has the drawback that it wouldn't make good use of
Android respectively IOs resources. Interestingly CheerpJ touch
support is quite good, for example in the above example

one can move table columns around by touch. Woa!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants