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

JLabel spec is inconsistent regarding hor. alignment and text position

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.2.2
    • docs
    • generic
    • generic

      The JLabel spec says that setHorizontalAlignment() can accept
      LEFT, CENTER, RIGHT, LEADING or TRAILING.
      However, the spec says that getHorizontalAlignment() returns
      LEFT, CENTER, or RIGHT.

      The same issue applies to setHorizontalTextPosition() and
      getHorizontalTextPosition().


      The information for these methods should be consistent, and
      the default values returned by getHorizontalAlignment() and
      getHorizontalTextPosition() should be specified.


      See Comments section for history and additional info on this
      issue.

            jeff Jeff Dinkins
            gaurisha Gauri Sharma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: