我用J2SE做了一个酒店管理的软件, 其中有一个锁定功能,就是用JWINDOW 盖住楼整个屏幕 ,可是,一按windows徽标键 就是弹出开始菜单, 请问高手,我该如何解决? 

解决方案 »

  1.   

    设置按win键的监听!!不知道行不行!! 
      

  2.   

    JAVA肯定不行,要用其他的软件来实现就算你监听了win键,你会发现ctrl+alt_del会弹出窗口
      

  3.   


    java.awt.event 
    类 KeyEvent
    java.lang.Object
      java.util.EventObject
          java.awt.AWTEvent
              java.awt.event.ComponentEvent
                  java.awt.event.InputEvent
                      java.awt.event.KeyEvent
    所有已实现的接口: 
    Serializable 
    直接已知子类: 
    MenuKeyEvent VK_WINDOWS
    public static final int VK_WINDOWS用于 Microsoft Windows 的 "Windows" 键的常量。此常量同时用于左右两个这种键。 从以下版本开始: 
    1.5 
      

  4.   


    以前听人讲过好像说是有一些涉及到电脑控制的功能Java很难实现
      

  5.   

    要用到键盘钩子,通过jni
    http://www.winu.cn/dispdocnew.php?tid=86197
    http://www.wangchao.net.cn/bbsdetail_18131.html
      

  6.   

    These operations are operating system dependent (and would require administrator privs). Why would you want to do this anyways? Disabling the keyboard for just your application is possible. But what would happen if your program crashed before you re enabled these devices. It would leave the computer unusable. If you have to implement this feauter, pls google commons-collections-3.1.jar and you could find some examples with Block hook.
      

  7.   

    找到VC++ 的代码,再用JNI包装一下,最后在java中调用