Actually, I did the Mac OS X implementation of the TrayIcon API.
I didn't implement the showBalloonMessage on the Mac mainly because
the Mac doesn't normally have that kind of notification balloon
like on Windows. (That's the one where a bubble pops up over an
icon in the windows task bar and tells you that you have mail, or a
software download is ready to be installed, etc.)
Also, you're just looking at a demo. This particular demo runs on
all platforms that JDIC supports, so it has common functionality.
The animated Duke is to show you can (if you want) use an animated
GIF and get it to animate. You have to provide the GIF though, so
you'd want to draw it however appropriate for your application.
As far as what you do with it in a real application, that's up to
you. It allows you to put an icon up in the status bar area, and
have it respond to a single or double click, and allows you to
attach a Swing JMenu as well, and trap selections of menu items, to
do with as your application requires.
Sorry, I seem to miss replies sometimes these days. I didn't see this
one until Greg's response and I checked archives with a browser.
First, sorry for crediting the wrong list member for the work. It
seems more individuals involved then I knew of.
I did shortly after that also stumble on the fact this is jvm
provided at 1.6? Strange timing for just seeing that. I haven't tried
anything with that version.
Uh, the baloon thing maybe not the best choice then for an OS X demo?
It appears to be the point of the demo and then throws the exception
that it's not implemented OS X. The animation was fairly slick but
might get old. Adding a menu would be a reasonable OS X thing to do
and as far as I know of currently this would be the only global (non-
application specific?) way to do this with java. Other than the
application specific Finder menu bar options included in the Apple
API's and the menus tied to frames if you choose to put them up there.
Thats a nice feature in itself. Again though the baloon window for
the demo is more visible and seems not to work, as you said it in
fact shouldn't. For others like me who just play with things and
don't read what the point of the API is, it seems broke, I know read
the doc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden