Remember that the demo is designed to be run on any platform that
supports JDIC (Windows, Mac, Linux), and some features are not
available on all platforms, like the Balloon messages. That's why the
"OK" button in the demo will give you an exception when run on the
Mac. But, you can change the "Caption" field, which on Mac OS will
change the text in the pop-up help when you hold the mouse cursor
over the Tray Icon in the status bar.
You can single-click to bring the app to the front, and right-click
to display the JMenu attached to the tray icon. Choosing any item in
the menu shows the action being called in your Java app.
I ran this fine on my G4, and now on my Mac Book Pro, without any
segmentation faults, so if you're still getting one there could be
another bug.
Rob Ross, Lead Software Engineer
E! Networks
---------------------------------------------------
"Beware of he who would deny you access to information, for in his
heart he dreams himself your master." -- Commissioner Pravin Lal
On Jul 4, 2007, at 9:36 PM, Mark Leone wrote:
On the subject of using JDIC for running Java programs from the
System Tray:
Rob Ross wrote:
But, the code for Mac TrayIcon should work fine if you download it
and run it from your desktop...
I downloaded the classes and integrated them into my desktop app,
and discovered a bug that causes a fatal crash (Segmentation
Fault). The bug is known, and the info is here: https://
jdic.dev.java.net/issues/show_bug.cgi?id=454 . A fix has been
uploaded to CVS, but the platform-specific instructions for
building JDIC from source don't mention OSX.
I posted a request for help on the main JDIC list, but if anyone
here has OSX-specific build instructions for JDIC, or a binary
distro with the aforementioned bug fix, I'd be much obliged. I'm
hoping for step by step instructions, because I know next to
nothing about C compilers and am not too great on Unix. I've built
complex projects before from source on OSX, but only after throwing
the kids out of the room, doing a couple dozen google searches, and
let's just say not having a completely happy, fulfilling, and
family-friendly time in front of the keyboard.
-Mark
_______________________________________________
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/rross%
40eentertainment.com
This email sent to email@hidden
_______________________________________________
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