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.
Java Applet 是否总是在失去焦点时执行其代码?我必须把这个小程序放在一个网页中。我试图理解这个原因,因为我必须开发一个通过 JavaPos 监听一些硬件组件的小程序。我在小程序中定义了一个回调方法,即使用户单击其他页面组件,我也不确定它是否有效。谢谢
Java Applet 是否总是在失去焦点时执行其代码?
是的,除非小程序代码在失去焦点时故意停止执行。