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

List does not honor user specified background, foreground colors on XToolkit

XMLWordPrintable

    • b35
    • sparc
    • solaris_9
    • Verified

      I am specifying background color, foreground color and a font to AWT List through setBackground, setForeground() and setFont() methods available in Component class. But on XToolkit, the color properties are not at all honored and list continues to use the default color properties. This works fine on Motif and Win32. Setting colors is a basic property and should work fine.

      This is seen on Tiger as well as Mustang-b28 on XToolkit. I reproduced it on Solaris9-CDE.

      I have attached a sample test. Execute the sample test. Check whether the background is shown in red and foreground is shown in yellow for the list. If not, the bug is reproduced.
      ###@###.### 2005-03-26 15:44:39 GMT

            dcherepanov Dmitry Cherepanov
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: