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

Mobile: A node initialized with opacity < 1 is opaque

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: fx1.0
    • Fix Version/s: fx1.1
    • Component/s: javafx
    • Environment:

      Emulator running on Windows XP, jdk6u10

      Description

      A node created with opacity is 0.5 is opaque. This happens only on emulator and works correctly on desktop. Compatibility issue

      To reproduce, run the below code on emulator. If the red rectangle is opaque, bug is reproduced

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

      Stage {
          width: 300
          height: 300
          scene: Scene {
              content: [Rectangle {
                  x: 40
                  y: 40
                  width: 80
                  height: 60
                  fill: Color.BLUE
              }, Rectangle {
                  x: 80
                  y: 80
                  width: 80
                  height: 60
                  fill: Color.RED
                  opacity: 0.5
              }]
          }
      }

        Attachments

          Activity

            People

            • Assignee:
              ailjin Artem Iljin (Inactive)
              Reporter:
              gramachasunw Girish Ramachandran (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: