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

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


On Mon, 30 Oct 2023 14:00:56 GMT, Prasanta Sadhukhan <psadhukhan at 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


More information about the openjfx-dev mailing list