On Mon, 19 May 2025 06:06:17 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> The issue is when a JSplitPane is embedded inside a lazily-initialized panel, > and this panel is displayed using a dialog created via > JOptionPane.createDialog(), the divider location is not preserved when > reopening the dialog. > This is because when we added support for ComponentOrientation for > JSplitPane, even though the left and right compoent is drawn the divider > location is not set and was set to initial value and not to the value set by > user. > Fixed by setting the divider location before rendering the left and right > components.. This pull request has now been integrated. Changeset: 90d6ad01 Author: Prasanta Sadhukhan <psadhuk...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/90d6ad015714b81064dd16d0e64f1b774e68d4f3 Stats: 204 lines in 2 files changed: 188 ins; 0 del; 16 mod 8356594: JSplitPane loses divider location when reopened via JOptionPane.createDialog() Reviewed-by: kizune ------------- PR: https://git.openjdk.org/jdk/pull/25294