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

JTabbedPane preferred size calculation is wrong for SCROLL_TAB_LAYOUT.

XMLWordPrintable

    • b16
    • linux

      Additional info:
      Windows 10 Pro, 64 bit
      Linux Ubuntu 19.10 64 bit

      Tested on
      JDK 14 build 27.

      Testcase javax/swing/JTabbedPane/TabProb.java failed with below mentioned error.
      ----------System.err:(14/972)----------
      java.lang.RuntimeException: JTabbedPane preferred size calculation is wrong for SCROLL_TAB_LAYOUT
      at TabProb.test(TabProb.java:123)
      at TabProb.main(TabProb.java:92)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: JTabbedPane preferred size calculation is wrong for SCROLL_TAB_LAYOUT
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: JTabbedPane preferred size calculation is wrong for SCROLL_TAB_LAYOUT

            psadhukhan Prasanta Sadhukhan
            amrsahu Amresh Sahu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: