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

Incorrect window size when explicitly setting the bounds of JDialog

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Issue appears to affect Windows 10 only and is reproducible in both JDK 11 and JDK 12.

      A DESCRIPTION OF THE PROBLEM :
      When setting the bounds of a JDialog component under Windows 10, the window is ~8 pixels too small on left, right and bottom extremities. It appears as if Java is allocating space for Windows 7 decorations which aren't present on Window 10 machines.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create JDialog and set full-screen bounds explicitly.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      JDialog occupies all available screen space.
      ACTUAL -
      JDialog occupies the majority of screen space with an ~8 pixel empty border located at left, right and bottom window extremities.

      CUSTOMER SUBMITTED WORKAROUND :
      None required, as all metrics appear to operate as expected, albeit with an unwanted ~8 pixel border on Window 10.

      FREQUENCY : always


            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: