Effective way to create an application in the system tray

This is my first post on Stack Overflow, and I just wonder about the options for creating an application in the system tray. The application will start mainly from the system tray, still working and can be raised to the window when pressed. You also need to have some support for global keystroke tracking in order to open a window.

I am curious what options I have available to me, as I am sure there are many ways to do this. I am most familiar with Java, although I have experience with C ++. I am willing to explore other languages ​​if they have certain privileges for them, although it would be nice to work with what I know in some way.

thanks

+3
source share
3 answers

Java 6 has new functionality that allows you to create applications that use the system tray.

Functionality The new system tray in Java SE 6 contains detailed information and also provides sample code.

Recently Added SystemTray, and TrayIconclasses java.awtcan be used to add icons to the system tray. Icons can respond to mouse clicks and use pop-up menus. However, this new functionality is part of AWT, so it does not work very well with Swing components.

Here is an example of a small number of hours that are displayed in the system tray, which was created with the use of classes SystemTrayand TrayIconin Java 6:

Java http://coobird.net/img/systrayclock.png

+7

Winforms .

Java, .NET.

.

+1

Java. . , , , .

Java , java- , I/O .

Windows perf. . , - MSFT.

, , . try ++ API Win32. API Win32, Windows.

0

Source: https://habr.com/ru/post/1711049/


All Articles