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

JTabbedPane.SCROLL_TAB_LAYOUT javadoc implies scroll buttons always visible

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      rc
    • CPU:
      generic
    • OS:
      solaris_2.6

      Description

      javax.swing.JTabbedPane tab layouts spec needs to be relaxed to fit various look and feels (including Aqua on Apple). This has been initiated by Apple Computer.

      1) Currently, JTabbedPane spec states that JTabbedPane.WRAP_TAB_LAYOUT is the
      default tab layout policy. This is unacceptable on Apple because WRAP_TAB_LAYOUT
      doesn't fit into Aqua Look and Feel.

      A property needs to be introduced that will store the default tab layout policy. This property needs to be initialized by the UI at installUI time. If the property isn't set, the default needs to be JTabbedPane.WRAP_TAB_LAYOUT. This will allow Apple to specify their own default tab layout at installUI time. The spec needs to be corrected to specify this behavior.

      2) SCROLL_TAB_LAYOUT: the current spec says:

      "The tab layout policy for providing a scrollable region of tabs48 when all the tabs will not fit within a single run. A pair of scroll buttons are provided for the user to control the scrolling. The placement of the scroll buttons is
      determined by the look&feel."

      by Apple's request needs to be changed to

      "The tab layout policy for providing a subset of available tabs when all the tabs will not fit within a single run. A separate control is provided to navigate beyond the currently visible set of tabs, the implementation of which is platform dependent. "

      3) The javadoc needs to be updated to indicate that it is up to the UI to honor the tabLayoutPolicy, and that some UIs may not support it, that is:

      Some look and feels may support only a subset of the tab layout policies, in which case certain values for this property would be ignored by the look and feel.

        Attachments

          Activity

            People

            Assignee:
            svioletsunw Scott Violet (Inactive)
            Reporter:
            ksoshals Kirill Soshalskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: