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

Explicitly setting strokeDashArray to its default value causes a difference in appearance

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx1.0
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      JavaFX 1.0.1 b02, Windows XP Prof, 6u12 b03

      Description

      This is reproducible with javafx 1.0.1 b02 on desktop. This works fine on mobile.

      I'm showing a Rectangle with strokeDashArray set to [1.0] which is its default value. This shows a difference in the appearance of Rectangle's stroke - it looks as if stroke is broken at some points. To reproduce, run the below code.

      import javafx.scene.*;
      import javafx.stage.*;
      import javafx.scene.shape.*;
      import javafx.scene.paint.*;

      Stage {
          scene: Scene {
              content: Rectangle {
                  width: 80
                  height: 60
                  x: 40
                  y: 40
                  fill: Color.BLUE
                  stroke: Color.RED
                  strokeWidth: 20
                  strokeDashArray: [1.0]
              }
          }
          width: 200
          height: 200
      }

        Attachments

          Activity

            People

            • Assignee:
              kcr Kevin Rushforth
              Reporter:
              gramachasunw Girish Ramachandran (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: