B4J Library jSystemTray - Add icons to the system tray (notifications)

Erel

Administrator
Staff member
Licensed User
With this library you can add system tray icons and handle their events.

This is useful for applications that should run in the background and still allow the user to interact with.



Tray icons have two events: DoubleClick and MenuClick. The menu appears when the user right clicks on the icon.

Usually when the user closes the last form the process exits. The process will however keep running if there is at least one visible tray icon.

This library is an internal library now. If you don't see it in the IDE then you can download it here: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-441231
 

Attachments

Last edited:

jmon

Well-Known Member
Licensed User
thanks, very easy to use. May I suggest adding a blink (or flash) tray icon option? that would be great to attract the user's attention.
thanks.
 

Erel

Administrator
Staff member
Licensed User
You can easily implement it in your project. Add a transparent icon and use a timer to replace the icon.
 

Pascual Pérez

Member
Licensed User
Erel, would it be possible to implement the event SingleClick? i use a tray icon as a toggle to hide/show a window. Thank you.
 

Erel

Administrator
Staff member
Licensed User
Is there a way to show a notification balloon in the tray icon?
There isn't any "automatic" way to do it. You can create an undecorated form and then show it as a notification. Though it will not be simple to find the correct position.
 

jmon

Well-Known Member
Licensed User

Erel

Administrator
Staff member
Licensed User
JavaFX v2 doesn't provide a global on top feature. It might be possible with a library that creates a Swing window.
 
Top