From my experience, the system tray is generally used to maintain visibility for a larger (often system-level) application that is not currently running or showing on screen. I'm not sure that such use cases would be common in a Pivot application.

In general, the DesktopApplicationContext window needs to be visible in order for a user to interact with a Pivot app. The only time this would not be the case is if the host frame is minimized (which translates to a suspend() call to the Application). In this case, the user *might* want to add an icon to the system tray, but that seems unlikely, since the main application window is still visible on the screen (albeit, in a minimized state).

I can definitely see a case for *launching* a Pivot application from the system tray, but that would require the caller to manually invoke DesktopApplicationContext.main(), and this could certainly be done from within an AWT-based bootstrap application.

So, my take is that there is not much of value that Pivot could add on top of the current JDK system tray support.


On Sep 4, 2009, at 11:02 AM, Todd Volkert wrote:

But would adding it to Pivot add anything? The windowing toolkit part of Pivot was created to satisfy deficiencies in AWT/Swing. The collections interfaces were created to satisfy deficiencies in the JDK collections. Conversely, we decided not to add any Pivot-specific preferences API because it already exists in the JDK, and there are no problem with it (I've used it, and it's brain-dead simple). Is there a deficiency in the system tray API that you're trying to solve? If not, then there's no real reason to
touch it in the platform.

-T

On Fri, Sep 4, 2009 at 10:56 AM, Sandro Martini <[email protected] >wrote:

I'm thinking on the ability for Pivot Desktop Applications to gain
access to the System Tray, without having to use directly AWT (as in
all other Pivot public functions).

Then for example we could add/remove and maybe enable/disable
application-specific menu elements ... i think should be possible with
the System Tray (I've never used it, sorry).

More info needed ?
Some are here:
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/


Oh, maybe another interesting feature (i don't think it's already
implemented) that relies on Java 6 features is the ability for main
Windows to have a flag "Always stay over", could be interesting, right
?
Some info here:

http://72.5.124.55/javase/6/docs/api/java/awt/Window.html#setAlwaysOnTop%28boolean%29
But maybe this could be more complex to do than the benefits it gives
... what do you say ?


Bye


Reply via email to