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

The background color of the button can't be displayed and when pressed the button, the background color can not be changed in accordance with the case described.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      x86
    • OS:
      windows_8

      Description

      Testsuite name: Regression
      JDK/JRE tested: JDK9b06(64bit)
      OS/architecture: win8-x64
      Reproducible: Always
      Reproducible on machine: win8-x64

      Instruction:
      This test requires Windows look and feel, just press Pass if you run it not on Windows.
      When the test starts you'll see toggle buttons in three rows two of which are toolbars.
      Make these buttons pressed, their background color must change to halftones between the button background colors and the ToggleButton
      highlight color (it is shown in the square below).
      If the background color does not change correctly for at least one button,the test fails.

      Actual behavior:
      The background color of the button can't be displayed refer to bug4128979.jpg and these buttons be pressed,their background color can't change to halftones between the button background colors and the ToggleButton highlight color.

      source code contains the following statement:
      JToggleButton cbut = new JToggleButton("DefaultBorder");
              cbut.setBackground(Color.red);
              c.add(cbut);
              cbut = new JToggleButton("DefaultBorder");
              cbut.setBackground(Color.green);
              c.add(cbut);
              cbut = new JToggleButton("DefaultBorder");
              cbut.setBackground(Color.blue);
              c.add(cbut);
             ...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kizune Alexander Zuev
              Reporter:
              tolli Tony Li (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: