On Thu, 28 Jul 2022 21:38:56 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- > >  This pull request has now been integrated. Changeset: 891df212 Author: Harshitha Onkar <[email protected]> Committer: Prasanta Sadhukhan <[email protected]> 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
