On Sat, 30 Jul 2022 00:28:13 GMT, Harshitha Onkar <[email protected]> wrote:
>> A simple change listener is used in JTabbedPane to lazily fill with >> components - this is done by adding the components to JTabbedPane using the >> `setComponentAt` in the change listener. >> >> Previously, if the change listener was placed before calling `addTab()` , >> the previous visible component was overlapping with the current visible >> component. To fix it, the visibility of previous component is set to false >> before the current component's visibility is set to true in `setComponentAt`. >> >> Following are the before and after fix screenshots- >> >>  > > Harshitha Onkar has updated the pull request incrementally with one > additional commit since the last revision: > > bug id changed, added isVisible check Applied the change and ran your test. The test clearly shows the difference, and it looks good to me. ------------- Marked as reviewed by dnguyen (Author). PR: https://git.openjdk.org/jdk/pull/9681
