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

LIGHTWEIGHT popup type is allowed only for the JToolTip and JPopupMenu

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: 6-pool
    • Component/s: client-libs
    • Labels:

      Description

      The usage of lightweight popups is allowed only for the JToolTip and JPopupMenu classes. For all the other classes the mediumweight popup is used. This is hardcoded into the PopupFactory.getPopup(Component, Component, int, int) method.
      User might want to use lightweight popups to create transparent inner popups or for other purposes.

      Here is the code that is used to determine popup type:

              else if (popupType == LIGHT_WEIGHT_POPUP &&
                       !(contents instanceof JToolTip) &&
                       !(contents instanceof JPopupMenu)) {
                  popupType = MEDIUM_WEIGHT_POPUP;
              }

      This code should be changed.
      ###@###.### 10/14/04 14:38 GMT
      ###@###.### 10/14/04 15:22 GMT

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kizune Alexander Zuev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: