GeeCON Prague 2014*
The moose likes Java in General and the fly likes Minimizing a program into the tray bar in windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Minimizing a program into the tray bar in windows" Watch "Minimizing a program into the tray bar in windows" New topic
Author

Minimizing a program into the tray bar in windows

Shawn Diotte
Greenhorn

Joined: Oct 24, 2002
Posts: 14
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

Joined: Sep 29, 2000
Posts: 8521
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.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Erik Pragt
Ranch Hand

Joined: Sep 08, 2001
Posts: 125
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

Joined: Sep 29, 2000
Posts: 8521
Well, just goes to show that I am no Windows programmer .
In that case . . . I just don't know .
Shawn Diotte
Greenhorn

Joined: Oct 24, 2002
Posts: 14
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

Joined: Sep 08, 2001
Posts: 125
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

Joined: Oct 24, 2002
Posts: 14
Thanks you very much i appreciate everything you did
This will help a lot thanks
 
GeeCON Prague 2014
 
subject: Minimizing a program into the tray bar in windows