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

Rectangle initially rendered too low in JButton with metal pipeline

XMLWordPrintable

    • 2d

      To reproduce, run the attached program with the metal pipeline:

      $ java -Dsun.java2d.metal=true SimpleSwingButton

      The blue rectangle of the JButton is initially shown a few pixel too low, so that the text is off-center in the button (see JButton-bad.png). If you click the button, or resize or refresh the window, it is rendered correctly after that (see JButton-good.png). This does not happen with the OpenGL pipeline.

        1. SimpleSwingButton.java
          1.0 kB
        2. JButton-good.png
          JButton-good.png
          49 kB
        3. JButton-bad.png
          JButton-bad.png
          49 kB

            aghaisas Ajit Ghaisas
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: