Integrated: 4765299: componentResized() not always called with nested JSplitPanes
Prasanta Sadhukhan
psadhukhan at openjdk.org
Tue Jan 13 04:32:25 UTC 2026
On Tue, 6 Jan 2026 10:53:31 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> If a component "comp" be nested inside a "inner" JSplitPane with VERTICAL_SPLIT mode and if then "inner" be nested inside a
> "outer" JSplitPane with HORIZONTAL_SPLIT mode and a component listener is added to "comp"
> then with this setup, componentResized() on the listener is called ONLY when the divider of "outer" is moved manually
> however, it is not called when the divider of "outer" is moved using "One touch expandable" left button at the top of the divider.
>
> This is because the `layoutContainer` bails out if the width or height is 0 which logically should be to bail out if both width and height is 0 and when "One touch expandable" left button is pressed, width becomes 0 so `layoutContainer` bails out without sending the event.
>
> With this fix, componentResized is called
>
> No regression is observed in CI.
This pull request has now been integrated.
Changeset: 0b9d4c02
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0b9d4c02e39191e9dba721115f422e28ee5b9869
Stats: 175 lines in 2 files changed: 173 ins; 0 del; 2 mod
4765299: componentResized() not always called with nested JSplitPanes
Reviewed-by: tr, kizune
-------------
PR: https://git.openjdk.org/jdk/pull/29063
More information about the client-libs-dev
mailing list