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

TitledBorder API inconsitent with implementation: uses TOP instead of DEFAULT_POSITION

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
      None

      Description

      The API for TitledBorder is inconsistent with its implementation. The API for the DEFAULT_POSITION static states:

      "Use the default vertical orientation for the title text."

      However, the actual implementation defaults to a hardcoded value of TOP instead of DEFAULT_POSITION when a position is not specified. Among the side effects of this is that the Nimbus LAF cannot correctly specify a different default position other than TOP. Ideally, the implementation would be brought into conformance with the spec, and the default text position would be DEFAULT_POSITION.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peterz Peter Zhelezniakov
              Reporter:
              rbair Richard Bair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: