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-
>> 
>> ![image](https://user-images.githubusercontent.com/95945681/181658303-ff3a7df7-5af6-4e76-a103-45d4d76480c3.png)
>
> Harshitha Onkar has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   bug id changed, added isVisible check

Marked as reviewed by psadhukhan (Reviewer).

-------------

PR: https://git.openjdk.org/jdk/pull/9681

Reply via email to