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

Wrong screen size.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 7u6
    • javafx
    • 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

      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?

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

              Created:
              Updated:
              Resolved:
              Imported: