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

Text initially rendered too high 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 text in the JButton is initially shown a few pixel too high, so that it 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

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              kcr Kevin Rushforth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: