I'm trying to create an on-screen keyboard using JInternalFrame, but I'm having an obvious problem. Whenever I click a button on JInternalFrame I lose focus on the text field from the main window (a custom Component). Can I somehow prevent JInternalFrame from gaining the focus?
I'm trying to create an on-screen keyboard using JInternalFrame,
Don't use a JInternalFrame.
Instead use a non modal JDialog. Then you can use:
dialog.setFocusableWindowState(false);
to prevent the dialog from gaining focus.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.