On Mon, 30 Oct 2023 14:00:56 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

>> FX Nodes embedded in a Swing JFXPanel does not track the component 
>> orientation and FX nodes remain unaffected when component orientation 
>> changes.
>> Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value 
>> from the JFXPanel.
>
> Prasanta Sadhukhan has updated the pull request incrementally with two 
> additional commits since the last revision:
> 
>  - jcheck
>  - Init orientation

I can add in JFXPanel.java

if (!cor.equals(ComponentOrientation.UNKNOWN)) {
                boolean rtl = cor.equals(ComponentOrientation.RIGHT_TO_LEFT);
                stage.setNodeOrientation(rtl ? NodeOrientation.RIGHT_TO_LEFT :
                                               NodeOrientation.LEFT_TO_RIGH**T);
            } else {
stage.setNodeOrientation(NodeOrientation.LEFT_TO_RIGHT);**
}

if that is what your MonkeyTester expects..

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

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

Reply via email to