JDK-6471755 : TrayIcon -- support JPopupMenu (not only PopupMenu) in the constructor
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-09-18
  • Updated: 2011-02-16
  • Resolved: 2006-09-18
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :

It would be great, if the TrayIcon constructor at http://download.java.net/jdk6/docs/api/java/awt/TrayIcon.html

would accept not only AWT PopupMenu, but SWING JPopupMenu also.

now the constructor is:
TrayIcon(Image image, String tooltip, PopupMenu popup);

JUSTIFICATION :
It is impossible to setMnemonic to PopupMenu.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I want to build more sofisticated menus using JPopupMenu (SWING) - not only PopupMenu (AWT).

Comments
EVALUATION This extension has already been requested. Please see RFE 6285881.
18-09-2006