This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display SystemTrayIcon in windows services mode of Windows 7  RSS feed

 
sharab rao
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Folks,

I have added code for enable SystemTrayIcon for windows 7. it is working fine with netbean application mode, while i am executing the appliaction in windows services mode it is not working.

Please find below code for your reference.



Please let me know if any code wants to be added for triggering in windows service mode.
Thanks for your support in advance.


Regards,
Ram
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess that their is no desktop in service mode (services can run even if the user is logged out) and so there is no system tray to add the icon to.
 
sharab rao
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joanne Neal,
I am using InstallAnyWhere software to wrap my application in exe formate.
Once exe created, Executing that exe file in windows services mode.
there it should trigger.

it is working fine in netbean appliaction. once application is created as exe and executing that it is not triggering.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sharab rao wrote:Executing that exe file in windows services mode.
there it should trigger.

No it won't, as I explained in my first post.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!