Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic access to the notification area (aka the System Tray)




On Jul 1, 2007, at 2:40 PM, Rob Ross wrote:

But, the code for Mac TrayIcon should work fine if you download it and run it from your desktop.

OK, I'm curious and have too much idle time. I downloaded jdic from here...


https://jdic.dev.java.net/servlets/ProjectDocumentList?folderID=6267

The Mac version of course.

Trying to run the Tray demo from there I get a "Show Baloon Message" window. Clicking on the obvious OK button gets...

Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Method showBalloonMessage is unsupported under Mac!
at org.jdesktop.jdic.tray.internal.impl.MacTrayIconService.showBalloonMessa ge(Unknown Source)
at org.jdesktop.jdic.tray.TrayIcon.displayMessage(Unknown Source)
at Tray$3.actionPerformed(Unknown Source)
...


After this I noticed it does successfully add a little waving Duke animation to the Finder menu bar. I'm ok with that, it's small enough to be unobtrusive so the repeated and repeated waving won't drive you crazy real fast. The yellowish background seems a little out of place considering everything else is a white background.
But given the above it doesn't appear to do too much really useful.


I don't intend to be overly critical here. It appeared that at least the early work on this was done by the java-dev list's own Elliot Hughes. But this version of this demo does not seem to work completely fine.

Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



_______________________________________________
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

This email sent to email@hidden
References: 
 >Re: Programmatic access to the notification area (aka the System Tray) (From: Mark Leone <email@hidden>)
 >Re: Programmatic access to the notification area (aka the System Tray) (From: Rob Ross <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.