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

JComboBox uses wrong colour in Windows L&F

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.7
    • client-libs
    • merlin
    • x86
    • windows_nt



      Name: dbT83986 Date: 04/05/99


      Swing v. 1.1beta1

      In the Windows L&F on NT4 the JComboBox uses the wrong color
      for the background (ie it ignores the system colour)

      Both editable & non editable JComboBoxes drop down menus are
      always white.

      The non editable JComboBox also uses white for the "main" view
      (The editable combobox uses the correct system colour).

      (for code use the swingset example).

      ===========================
      REVIEW NOTE 4/5/99 - User responded with additional information

      I disagree that this is a duplicate of that bug. The bug(4192721) was
      of *changing* the colour, whereas this bug is about *the particular*
      color used. Hence I would like you to re-evaluate this.

      Sorry if there was too litle in the previous mail, so here is more
      complete description.

      I don't care about changing the colour - but colour used *must* be the
      _windows system colour_.

      See the attached JPEG for a clear view.

      complete steps to reproduce.

      1) open the display properties.
      2) select the apearance tab.
      3) Change the Item to "Window"
      4) Change the colour to something really obvious (bright green in the
      above example)
      5) choose apply
      Notice how all the windows combo boxes are now the colour you selected
      including there popup menus.

      6) Start the SwingSet demo (this must be done after changing the
      colours.)
      7) Change the L&F to Windows.
      8) select the ComboBox tab.
      notice how the Editable JComboBoxes are green and the Classic are white
      - BUG
      9) Select either of the JComboBoxes so that the pull down menu apears
      notice that they are white - BUG
      (Review ID: 56221)
      ======================================================================

            mdavidsosunw Mark Davidson (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: