阅读背景:

在Java中获取当前活动窗口的标题。

来源:互联网 

I am trying to write a Java program that logs what application I'm using every 5 seconds (this is a time tracker app). I need some way to find out what the current active window is. I found KeyboardFocusManager.getGlobalActiveWindow() but I can't get it to work right. A cross platform solution is preferable, but if one doesn't exist, then I'm developing for linux with X.Org. Thanks.I am trying to write a Java program that logs w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: