Java App’s System Try icon not showing after window login

toaries

Junior Member
Aug 27, 2012
5
0
0
Hello


I have java application it creates the system try icon in window OS.when I start manually it run fine. But now I put my application to window startup mean my application should run when window boot without login.
But problem is my application started and perform there taskes but it not adding the system tray icon when some one login. And even I notice that on window boot up my application is successfully creating the TrayIcon object ,creating MenuItem ,adding in popup and even adding the tray icon tray.add(trayIcon); even no any exception on window bootup,but when I login It’s not showing on system try along with time, land card icons. I want that it should create the try icon when some one login same like when we logged in lancard tray icon appears.


Thanks
Regards
Mudasser |
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
If you're running without a login then you probably are not running in the user's interactive window session. It's been a long time since I messed with window sessions, so I can't help much further than that. The typical way to solve this is to have the guts of the system run as a service, and have a second app that creates the tray icon on login and communicates with the service.