[英]Is there a way to hide the keyboard without losing the focus of the EditText
[英]Run jar without losing focus
我使用Windows任务管理器每5分钟运行一次.jar。 它是一个声明为public class myClock extends javax.swing.JFrame
的简单JFrame, public class myClock extends javax.swing.JFrame
,只显示实际时间(HH:MM)。
我有2个屏幕:主屏幕和辅助屏幕。
当时钟运行时,它从角落的辅助屏幕开始。 在主屏幕上观看电影或全屏播放游戏时,如果任务运行,无论主屏幕上的全屏显示最小化,时钟都显示在辅助屏幕上并获得焦点。
有没有办法:
禁用JFrame将焦点放在时钟或
创建框架时,您可以使用:
frame.setFocusableWindowState(false);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.