New TrayIcon-Plugin available now

The TrayIcon plugin allows developers to add an icon to the system tray of a Windows or Linux desktop as many other applications do. This makes a Servoy solution an even more professional application. Users can be notified of events (new emails, open todos etc.) and start an action in their Servoy solution from within any other application.

In the screenshot below the TrayIcon plugin installed the little balloon icon showing a tooltip:

Developers can assign a Servoy method to the onAction event that is triggered when the user double clicks on the tray icon. A method of the plugin allows to make the Servoy window the frontmost in case it is currently in the background.

The plugin also accepts a JSPopupMenu created with Servoy’s popupmenu plugin. Anything that is possible with the popupmenu plugin can also be used in the tray icon. If the user right clicks on the tray icon, the popup will be shown:

The plugin can also display standard notification messages as shown below:

It is possible to set a method that will be executed when the user clicks on such a balloon message. The plugin also allows you to change the icon that is displayed in the tray while a tray icon is already shown.

Important notice: the plugin requires at least Java 1.6.

The plugin is avaliable from our website.

HI Patrick,

can this also be done for MAC? (in the upper menu?)

Maybe (that means, in general: yes). As far as I see this would involve some hacking… I first like to see how interested people are in this.

And: as far as I know, there is no way of showing a message of some sort. The Mac has two ways of notifying a user: 1. bounce in the dock, 2. scroll some text in the menu bar (as Internet connect does). Both are not really great, if you ask me.

But: it does work on Linux :wink:

I have done some research. Apple currently “offers” a Java SE 6.0 Release 1 Developer Preview 6 that does exactly what I said before. It will install a menu in the menu bar. As soon as you use Java 6 on the Mac, this will be available “automatically”.

So in short: it works on all platforms with Java 6. :D

patrick:
And: as far as I know, there is no way of showing a message of some sort. The Mac has two ways of notifying a user: 1. bounce in the dock, 2. scroll some text in the menu bar (as Internet connect does). Both are not really great, if you ask me.

There’s a third option: Growl. A lot of apps are using this, skype included.

I just had a look at that. That looks very nice indeed! I think this could be easily implemented, they offer a Java API that looks very simple. You must have Growl installed, however, as far as I see. If there is interest, I will do some more research and see how I can “bundle” Growl.

patrick:
I just had a look at that. That looks very nice indeed! I think this could be easily implemented, they offer a Java API that looks very simple. You must have Growl installed, however, as far as I see. If there is interest, I will do some more research and see how I can “bundle” Growl.

That would be really nice!
Growl it’s becoming the standard for system wide notification so it should be quite common on customers pcs.