TitledBorder API inconsitent with implementation: uses TOP instead of DEFAULT_POSITION

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: