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

Some components not using <Component>.background & .foreground properties

XMLWordPrintable

      Following is the list of component properties which are not picked up from
      UIDefaults by there respective Components:
      In Ocean L&F:
       - JButton.background. So the buttons background cant be changed.

      In Motif L&F:
       - ScrollBar background property
       - Tree textBackground & textForeground property.

      In Windows L&F:
       - ScrollBar background property
       - Tree textBackground & textForeground property.

      In GTK L&F:
       - Progressbar foreground property
       - Radio button background property
       - Combo box foreground and background property
       - Checkbox background
       - MenuItem background
       - Tree textBackground & textForeground property.

      Steps to reproduce:
      1) Run the attached test case.
      2) Check all components background should be green and foreground
         should be red. The components which are not showing above attributes
         are not using properties from UIDefaults.
      3) Change between the different look and feels to check in each L&F.

            svioletsunw Scott Violet (Inactive)
            hsinghsunw Hemant Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: