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

TitledBorder API inconsitent with implementation: uses TOP instead of DEFAULT_POSITION

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • 7
    • 6
    • client-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: