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

PRISM: Stage with no x,y specified does not appear at the center of the screen

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx1.3
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Labels:

      Description

      I have a stage with no x,y specified. I expect it to be shown at the center of the screen but on prism, it does not appear at the center.

      To reproduce the bug, run this code -

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




      Stage {
          width: 200
          height: 200
          scene: Scene {
           content: Rectangle {
           x: 40
           y: 40
           width: 100
           height: 100
           fill: Color.BLUE
      }
      }
      }
      ---------

      I reproduced it on WinVista - jdk6u14 - Soma-graphics-scrum-b142. Not reproducible on swing pipeline.

        Attachments

          Activity

            People

            • Assignee:
              tdv Dmitri Trembovetski (Inactive)
              Reporter:
              pmohan Praveen Mohan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: