标签:new java div 解决 ble jframe 获取 键盘 问题
原因:
点击button会让jframe失去焦点,然后键盘监听不起作用
解决:
让jframe重新获取焦点就行了
jf.setFocusable(true); // JFrame jf = new JFrame("美女");
标签:new java div 解决 ble jframe 获取 键盘 问题
原文地址:https://www.cnblogs.com/baikaishui-liang/p/10400006.html