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

AbstractButton.setVerticalTextPosition mispositions text.

XMLWordPrintable

    • generic, x86
    • generic, windows_nt

      The attached source code and gif files are derived from the Java Tutorial for
      the Swing classes. It sets up four JCheckBoxes, but the error has been observed
      for other AbstractButtons. The four JCheckBoxes are labeled, from top to bottom,
      Chin, Glasses, Hair, and Teeth. The text alignments in the source code
      of the four are:
        Chin -- LEFT, TOP
        Glasses -- LEFT,BOTTOM
        Hair -- RIGHT,TOP
        Teeth -- RIGHT,BOTTOM
      The observed text alignments are
        Chin -- LEFT, BOTTOM
        Glasses -- LEFT,TOP
        Hair -- RIGHT,BOTTOM
        Teeth -- RIGHT,TOP

      The other AbstractButton text alignment failures are visible in the SwingSet
      demo that ships with the JDK.

      allan.jacobs@Eng 1998-10-07

            Unassigned Unassigned
            ajacobssunw Allan Jacobs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: