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

JTabbedPane setTabLayoutPolicy: created scroll buttons do not do anything

XMLWordPrintable

    • beta
    • x86, sparc
    • solaris_2.6, windows_98

      Creating a JTabbedPane with scroll tabs works via constructor creation but the button thumbs fail to traverse the tabs when the property is called directly via setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT).

      Attached sample.
      Steps:

      1. Compile sample
      2. Run sample
      3. Click the button, the TabPane will convert to scrolls
      4. Try to click the right arrow to move tabs
      Observe: Nothing happens, same test with the TabPane created in constructor works, i.e.
      tabPane = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);

            amfowler Anne Fowler (Inactive)
            jdixonsunw John Dixon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: