RFR: 8259687: JTabbedPane.setComponentAt doesn't hide previously visible tab component [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Tue Aug 2 06:52:55 UTC 2022
On Sat, 30 Jul 2022 00:28:13 GMT, Harshitha Onkar <honkar at openjdk.org> 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
Marked as reviewed by psadhukhan (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/9681
More information about the client-libs-dev
mailing list