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

Synth should aggregate painters of same method and direction

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • client-libs
    • b48
    • x86
    • windows_xp

      When several painters are defined for the same method and the same direction, Synth takes only the last one. For instance:

      <style id="scrollBarThumbStyle">
        <imagePainter method="scrollBarThumbBackground" direction="horizontal" path="images/scrollBar-thumb-horizontal.png" sourceInsets="1 2 1 2" />
        <imagePainter method="scrollBarThumbBackground" direction="horizontal" path="images/scrollBar-thumb-horizontal-grip.png" center="true" />
      </style>
      <bind style="scrollBarThumbStyle" type="REGION" key="ScrollBarThumb"/>

      In this example only the second <imagePainter /> is used by Synth. Both should be used and drawn in the same order of declaration.
      ###@###.### 2005-06-01 00:01:46 GMT
      Regression test is failing in PIT build
      javax/swing/plaf/synth/6278565/bug6278565.java: Tests multi-layered painting in styles. fails

            gromainsunw Guy Romain (Inactive)
            gromainsunw Guy Romain (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: