• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Minimizing a program into the tray bar in windows

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was wondering if anybody out there knew how to take and minimize a program to the tray bar when it loads on start up? If you do could you post me the code it would be greatly appreciated.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you want to run it as an NT Service.
Why don't you try JavaService and tell us how it works out .
Or you could try Bill Giel's JavaServ code.
A google search for Java+NT Service will get you lot's more references.
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cindy,
I don't have the answer to Shawn's question, but I don't exactly see how your answer is related to the question.
Running a service in Windows NT (/2000/XP) is a far different thing than showing a small icon next to the time in your address bar. As a matter of fact, I think there are almost no services which are shown as an icon, but if you install a program, say, for example: winamp, it will display a icon...
Just my 2 cents. Eurocents, in my case
Greetings, Erik
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, just goes to show that I am no Windows programmer .
In that case . . . I just don't know .
 
Shawn Diotte
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ya that is what i am looking for. I want to be able to just have an icon in the task bar that shows that the program is running. Not run a service. Thanks for the help tho. If anybody else out there can manage to find out how to do this could they be so kind and try to help me out.
Thanks in advance
Shawn
 
Erik Pragt
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I looked for you (try a google yourself next time...I cost 25 euros an hour.. )
this is what I found:
Open source:
http://www.amherst.edu/~tliron/jni/DesktopIndicator/DesktopIndicator.html
Commercial:
http://www.nevaobject.com/java/jcoro/coroutine4java.htm#example
http://www.javaapis.com/jtray/

Greetings, Erik
 
Shawn Diotte
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks you very much i appreciate everything you did
This will help a lot thanks
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic