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

Rectangle initially rendered too low in JButton with metal pipeline

    Details

    • Subcomponent:
      2d

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: