-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please backport JDK-8215396: JTabbedPane preferred size calculation is wrong for SCROLL_TAB_LAYOUT #63
Comments
Hi @mperktold, Thank you for your feedback. While we are working on backporting this issue, can you tell us about your use case and the failure you are seeing? Are you currently using the workaround mentioned in the JBS Bug? |
Thanks @cliveverghese, We didn't find a satisfactory workaround. As for the problem itself, please see the following two screenshots showing the JFrames produced by the program provided in the original bug: They should look identical, but the one using SCROLL_TAB_LAYOUT is too small. In our real app this causes some layout problems. For instance, when data forms are embedded in a JTabbedPane using SCROLL_TAB_LAYOUT, the last row is too small. Of course, the actual behavior depends on the LayoutManager used for the tab content, but the root of the problem is the wrong calculation of minimum and preferred size. |
Thanks! Although I am pretty confident this will work as expected, could you please tell me how I can get a snapshot build of Corretto 11 in order to test this? |
@mperktold We don't yet have snapshot builds of Corretto but you should be able to clone the repo to build and verify. |
I wasn't able to build a snapshot myself, but in the meantime, 11.0.6 was released, and I could verify the backport works. 👍 |
We would like to use JDK 11 in production, but we think that JDK-8215396 might disturb our users. The problem was fixed in JDK 13 but not backported, therefore please backport it to JDK 11.
Appologies if this is the wrong place to open such a request.
I tried requesting this at https://bugs.java.com/bugdatabase/, but I didn't get any reaction so far, so I'm trying it here.
Also, if you can point me to a better place for requesting backports, please do so.
The text was updated successfully, but these errors were encountered: