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

Wrong screen size.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      JavaFX
      2.2.0-b21
      Toolkit = QuantumToolkit
      Pipeline = ES2Pipeline
      Hardware acceleration ENABLED

      Operating System
      Mac OS X, x86_64, 10.8.3

      Java Version
      1.7.0_06, Oracle Corporation, 1.7.0_06-b23

      Description

      When I try to get screensize like this:
              Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
              double w = primaryScreenBounds.getWidth();
              double h = primaryScreenBounds.getHeight();
              double xMax = primaryScreenBounds.getMaxX();
              double yMax = primaryScreenBounds.getMaxY();
      I get that:
      w = 1440.0
      h = 874.0
      xMax = 1440.0
      yMax = 896.0
      But my screen on the MacBook Pro is 1440x900 px! I check it.
      So, where is my 4 pixels from yMax?

        Attachments

          Activity

            People

            Assignee:
            msladecek Martin Sládeček
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: