Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Minimizing a program into the tray bar in windows

 
Shawn Diotte
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Erik Pragt
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • 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"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you very much i appreciate everything you did
This will help a lot thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic