Integrated: 8259687: JTabbedPane.setComponentAt doesn't hide previously visible tab component
Harshitha Onkar
honkar at openjdk.org
Mon Aug 8 11:43:16 UTC 2022
On Thu, 28 Jul 2022 21:38:56 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-
>
> 
This pull request has now been integrated.
Changeset: 891df212
Author: Harshitha Onkar <honkar at openjdk.org>
Committer: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/891df2128ac5437af1113e83adf683bc6283b315
Stats: 112 lines in 2 files changed: 112 ins; 0 del; 0 mod
8259687: JTabbedPane.setComponentAt doesn't hide previously visible tab component
Reviewed-by: psadhukhan, dnguyen
-------------
PR: https://git.openjdk.org/jdk/pull/9681
More information about the client-libs-dev
mailing list