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

JTrayIcon: support Swing JPopupMenus for tray icons

    XMLWordPrintable

Details

    • x86, itanium
    • windows_xp

    Description

      A DESCRIPTION OF THE REQUEST :
      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

      Attachments

        Issue Links

          Activity

            People

              aivanov Alexey Ivanov
              jssunw Jitender S (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: