The moose likes Swing / AWT / SWT and the fly likes How to make poping image in Systray area Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "How to make poping image in Systray area" Watch "How to make poping image in Systray area" New topic
Author

How to make poping image in Systray area

D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 471
Systray Icon class provides a convenient method to display a message, however I'd like to popup a arbitrary content, in my case I'd like to show a new song album art when an application is iconized mode. Generally it isn't look like a complicated task, I just want to verify:
1. systray icon doesn't support that
2. there is no open source solution around


Get power of your iPod with MediaChest | Minimal J2EE container is here | Light weight full J2EE stack | My blog | Co-author of "Windows programming in Turbo Pascal"
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

I'm not sure what "Systray Icon" package you're using - but I know that the JDIC Tray Icon supports including icons in the popup menu. You could use the album artwork as the icon.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 471
I refer system tray supported Java 6 and above. The package you refer is nice, however it is EA. So I'll keep a hope that it will be included in Java 7.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

It looks like there are some possible improvements to TrayIcon coming in JDK 7.

Unfortunately, it doesn't look like there's an easy way to pop an image up from a TrayIcon currently.

You could try to do something like popping up a JWindow temporarily near the bottom of the screen, but I've played around with it some, and my attempts weren't completely satisfactory - there's no way to get the real location you should pop up the window - you just have to assume the task bar is at the bottom of the screen, and that there aren't a ton of icons in the system tray pushing your icon far to the left, and that the taskbar isn't taking up multiple rows, etc. You also have to handle all the timing logic to show/hide your window.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make poping image in Systray area
 
Similar Threads
Java and activeX ?
Icon in a web app ?
systray application
I need a little guidance
Java in SysTray