On Sun, 29 Oct 2023 22:20:17 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

>> Please read [this 
>> document](https://gist.github.com/mstr2/9f46f92c98d3c86aa6a0b4224a9a6548) 
>> for an introduction to the Platform Preferences API, and how it interacts 
>> with the proposed style theme and stage appearance features.
>
> Michael Strauß has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   changed parameter name

Java does have this information already, based on Locale, but it needs a call 
to AWT.  Perhaps part of that code could be put in the FX code base somewhere 
to provide this information.  I think `Locale` is the correct class to convey 
all this information, no need to create something new.

AWT:

     ComponentOrientation.getOrientation(new 
Locale(System.getProperty("user.language")));

Which has methods `isLeftToRight` and `isHorizontal`.

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

PR Comment: https://git.openjdk.org/jfx/pull/1014#issuecomment-1785954108

Reply via email to