Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6471755

TrayIcon -- support JPopupMenu (not only PopupMenu) in the constructor

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ndcosta Nelson Dcosta (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: