ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi. I want to minimize my program to the system tray and remove it from the traskbar in Windows. I'm using Java. How can I do it? Help would be appreciated. Thanks.
This is a Windows question in a linux forum, don't expect a flood of answers because a lot of us don't even run Windows...
I don't know much of Java but I can point you to Mercury and Azureus, both are Java apps, both run under Windows and linux and both have put an icon in the system tray. Maybe check the source for them and see how they do it.
In windows or i shold say MFC there is a think called SystemNotifyIcon or something like that. You create one of these and attach a menu to it and set some other options and with you mimimize you prgram it will show up on the Systemtray instead of the taskbar. I don't know how Java does it since ths is a Windows specific thing (and it is a pain in the butt to work with). But look for something along those lines
In windows or i shold say MFC there is a think called SystemNotifyIcon or something like that. You create one of these and attach a menu to it and set some other options and with you mimimize you prgram it will show up on the Systemtray instead of the taskbar. I don't know how Java does it since ths is a Windows specific thing (and it is a pain in the butt to work with). But look for something along those lines
Its actually not a purely windows feature. I've seen azureus minimize to a KDE system tray. Andit works for fluxbox box too.
See
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.