On Wed, 21 May 2025 03:51:53 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

>Since it is regression of 4265389: JSplitPane does not support 
>ComponentOrientation where setComponentOrientation method is added, it made 
>sense to me to set the divider location in that method before rendering the 
>left and right components explicitly as it was working before that fix.

But it sets the same value that is already applied to the split pane:
>this.setDividerLocation(this.getDividerLocation());

It seems this call is required to refresh the UI of the component, which ends 
up with an incorrect divider location for some reason. But it is unclear 
whether this is actually caused by the setComponentOrientation method, since 
the component orientations are not changed in the test.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25294#issuecomment-2896544587

Reply via email to