- 
    Enhancement 
- 
    Resolution: Duplicate
- 
     P4 P4
- 
    6
- 
        x86, itanium
- 
        windows_xp
Tray icons in Mustang support showing a PopupMenu. By allowing to show a Swing JPopupMenu, we get additional features such as menu icons.
A solution would be to create a JTrayIcon class that was a subclass of TrayIcon that added additional constructors to take in a JPopupMenu and perhaps even a custom component for rendering a status message. The JTrayIcon class could be in the javax.swing package tree, therefore there would be no AWT dependency on Swing.
JUSTIFICATION :
The ability to use a JPopupMenu for tray icons would provide additional functionality such as menu icons.
CUSTOMER SUBMITTED WORKAROUND :
A mouse listener could be registered with the tray icon that shows the JPopupMenu in a new window above the icon, however this involves additional work on the user's part.
###@###.### 2005-06-15 11:19:02 GMT
- duplicates
- 
                    JDK-6287100 Should be able to use JPopupMenu for tray icons -           
- Closed
 
-         
- 
                    JDK-6471755 TrayIcon -- support JPopupMenu (not only PopupMenu) in the constructor -           
- Closed
 
-         
- 
                    JDK-6575405 JTrayIcon class with javax.swing.ImageIcon and JPopupMenu -           
- Open
 
-         
- relates to
- 
                    JDK-6421284 JPopupMenu behaves incorrectly with invoker being set to null -           
- Resolved
 
-         
- 
                    JDK-6580930 Swing Popups should overlap taskbar -           
- Resolved
 
-         
- 
                    JDK-6217905 JPopupMenu keyboard navigation stops working -           
- Closed
 
-         
- 
                    JDK-6583251 One more ClassCastException in Swing with TrayIcon -           
- Closed
 
-         
- 
                    JDK-6530871 ClassCastException with JPopupMenu attached to TrayIcon -           
- Closed
 
-         
- 
                    JDK-6580925 Swing Popups don't get hidden on Alt+Tab -           
- Closed
 
-         
- 
                    JDK-6575405 JTrayIcon class with javax.swing.ImageIcon and JPopupMenu -           
- Open
 
-