swingx
  1. swingx
  2. SWINGX-1564

Painting issues with JXComboBox and Nimbus L&F when a highlighter is installed

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.6.5-1, 1.6.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When a highlighter is installed in a JXComboBox and the Nimbus L&F is used the background (inner area) of the combo box is painted in full white instead of the (default) background of the JComboBox, even if the highlighter is only changing the Font.

      The issue doesn't happen with other L&Fs, the background painted is the default of the JComboBox.

      Don't know if it helps to determine the problem but commenting the statements of the lines 170 and 171 of the class JXComboBox makes the background to be painted as expected.

      The issue can be seen with the SwingX Set demo application ("Highlighter Demo" > "JXComboBox" tab) with the Nimbus L&F.

      Tested with:

      Windows XP:
      java version "1.7.0_07"
      Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
      Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)

      java version "1.6.0_31"
      Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
      Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

      Ubuntu 12.04:
      java version "1.7.0_07"
      Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
      Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

      java version "1.6.0_35"
      Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
      Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)

      java version "1.7.0_21"
      OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1)
      OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

        Issue Links

          Activity

          Hide
          thc202 added a comment -

          Sorry, it seems to be issue SWINGX-1381 (even if in this case only the Font is being changed).

          Show
          thc202 added a comment - Sorry, it seems to be issue SWINGX-1381 (even if in this case only the Font is being changed).
          Hide
          kleopatra added a comment -

          related as per reporter comment

          Show
          kleopatra added a comment - related as per reporter comment
          Hide
          kleopatra added a comment -

          as you own the related issue

          Show
          kleopatra added a comment - as you own the related issue

            People

            • Assignee:
              Karl Schaefer
              Reporter:
              thc202
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: