On Mon, 22 Jul 2024 09:06:49 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

> > I hope Component Orientation should be applied recursively throughout its 
> > children components. Here the Orientation applied to JSplitPane is not 
> > set/applied to its left/right components, probably you may have to set them 
> > explicitly in `JSplitPane.setComponentOrientation()` ?
> 
> I think splitpane is only about left/right component and the orientation is 
> applied to them only ie left component will be placed right and viceversa for 
> RTL orientation, the components internal orientation needs to be controlled 
> by the component individually in this case as JSplitPane is only about 
> spliiting 2 existing components

I think @prsadhuk is right. If the components in a JSplitPane need to honor the 
orientation property it should invoke `applyComponentOrientation` method. As 
mentioned here, To set the orientation of an entire component hierarchy, use 
[applyComponentOrientation](https://docs.oracle.com/en%2Fjava%2Fjavase%2F22%2Fdocs%2Fapi%2F%2F/java.desktop/java/awt/Component.html#applyComponentOrientation(java.awt.ComponentOrientation)).

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

PR Comment: https://git.openjdk.org/jdk/pull/20214#issuecomment-2242480276

Reply via email to