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

Ability to disable tab run rotation

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P5
    • tbd
    • 7
    • client-libs

    Description

      A DESCRIPTION OF THE REQUEST :
      Add a way to have the protected method, BasicTabbedPaneUI.shouldRotateTabRuns(), return a user specified value, for example with a client property. The Metal LAF and its derivatives do this, but many other LAF's out there in the wild just extend from the Basic LAF and thus inherit this behaviour.

      JUSTIFICATION :
      Having the tabs rotate to the front when you click on one in a different level becomes confusing when there are lots of tabs.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Have a client property, eg. "JTabbedPane.rotateTabRuns" that enables or disables this feature, so that tabs in LAF's that extend from the Basic LAF have this as a configurable option.
      ACTUAL -
      When clicking on a tab that isn't in the front row, the tab runs rotate so that the clicked tab is now in the front row.

      ---------- BEGIN SOURCE ----------
      // Any program with multiple tabs and that isn't using the Metal LAF

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      tabs.putClientProperty("JTabbedPane.rotateTabRuns", Boolean.FALSE);

      Attachments

        Activity

          People

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: