不是很容易實現,好像可以直接做服務程序,不過沒做過,我是做得application,然後用install anywhere打包成服務的,但是沒有系統托盤的功能~~~

解决方案 »

  1.   

    yes!use trayicon,or use google to get more... o^_^o
      

  2.   

    see here:
       http://jeans.studentenweb.org/java/trayicon/trayicon.htmlWindows Tray Icon - Java Implementation!
    About?
    Want your Java App to live in the Windows System Tray (Taskbar Notification Area)? 
    Any icon can be used. You just need a 16x16 GIF/JPG image! 
    Tooltip is displayed when the user mouses over the icon 
    ActionListener support (callback Java method when user clicks Tray Icon) 
    Popup menu support (AWT menu, Swing menu, ...) 
    Internationalization support 
    Your applications window can be hidden (removed from the task bar) until the user clicks the Tray Icon! 
    Support for Windows XP style Balloon Messages 
    C++ source code for the native library included 
    Unicode and Internationalization support 
    Small demo app included
      

  3.   

    其实你可以用Win32 SDK写服务,托盘部分
    估计不用JNI不太可能实现