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

JComboBox popup wider than the combo box

XMLWordPrintable

    • beta2
    • generic
    • solaris_2.5

      The JComboBox popup window appears 3 pixels wider than the combo box. BasicComboPopup.getPopupLocation attempts to set the width of the popup to the width of the combo box. Instrumenting that method shows that both of these widths are reported to be the same. However, once drawn, the popup window appears wider.

      The problem is evident in for all look and feels.

      While this is a small visual problem for left-to-right locales, it is a much more glaring problem for right-to-left locales. The visual effect is that the combo box and the popup are aligned on their left edges rather than their right.

            mdavidsosunw Mark Davidson (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: