RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Oct 31 15:40:49 UTC 2023


On Tue, 31 Oct 2023 15:07:32 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> > I think it is expected to retain RTL in this case..
> 
> Ok, INHERIT is not supported, but why do you expect RTL? Shouldn't it go back to UNKNOWN and therefore LTR?
> 
> ```
> public static final [ComponentOrientation](https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/ComponentOrientation.html) UNKNOWN
> 
> ... To preserve the behavior of existing applications, isLeftToRight will return true for this value.
> ```

I expect RTL because INHERIT is unsupported so it will retain the existing orientation(which is RTL in this case
2. change JFrame.componentOrientation to RTL)
which is what I thought..

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

PR Comment: https://git.openjdk.org/jfx/pull/1271#issuecomment-1787465111


More information about the openjfx-dev mailing list