请教问题如标题。在Google里稍微搜索了一下,并没有找到解决方案- -b不知JAVA能实现否?

解决方案 »

  1.   

    WIN32里用全局钩子可以实现。在JAVA里不太好说,反正换了我是不会去想用它这么干的。
      

  2.   

    I don't the material realization of this requirement,
    But I had seen the same problem and the method to resolve it.
    you can set a sub frame to unvisible when the main frame is set to icon mode, in these case, the subframe can also capture the key event too.
    Good luck.
      

  3.   

    An other way for it is that you can set a sub frame out of the screen.
    Sincerely to say, these are not the professional scheme, you could refe to Java API for more information and good resolution.
    Good luck.
      

  4.   

    thanks a lot to JonsenElizee
      

  5.   

    I have tried but it didn't take any effort.The JFrame had lost its focus, so the key event didn't work any more.
      

  6.   

    what did you say? i very 茫然`````````   so bad......