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

LineBorder paints left edge 1 extra pixel wider since JDK 8

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_11"
      Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      A standard Swing LineBorder of size 1 will paint the left border 2px wide. This happens since JRE 8. The exact same code on JRE 7 paints the left border 1px wide. This can be observed by running the BorderDemo sample (http://docs.oracle.com/javase/tutorial/uiswing/examples/components/BorderDemoProject/src/components/BorderDemo.java) on the Oracle web site . If you run it in JRE 7 it is fine, if you run it in JRE 8 it is not fine.


      REGRESSION. Last worked in version 8u11


      REPRODUCIBILITY :
      This bug can be reproduced often.

      ---------- BEGIN SOURCE ----------
      http://docs.oracle.com/javase/tutorial/uiswing/examples/components/BorderDemoProject/src/components/BorderDemo.java
      ---------- END SOURCE ----------

        1. 20.png
          20.png
          32 kB
        2. 8u20.png
          8u20.png
          15 kB
        3. 8u333.png
          8u333.png
          25 kB

            aivanov Alexey Ivanov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: