It is seen JTextArea.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT) orientation is not honoured if it is called after setText() and remain at LTR orientation. It changes the orientation only if some more text is typed additionally to existing text. This behaviour is different from JTextField where the RTL orientation is honoured from start. Proposed fix is to check for ComponentOrientation propertyChange event and set i18n property if it is not set, so that orientation is honoured as soon as setComponentOrientation() is called. Checked for all L&Fs in all supported platforms.
------------- Commit messages: - 4710675: JTextArea.setComponentOrientation does not work with correct timing Changes: https://git.openjdk.java.net/jdk/pull/2673/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2673&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-4710675 Stats: 123 lines in 2 files changed: 123 ins; 0 del; 0 mod Patch: https://git.openjdk.java.net/jdk/pull/2673.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2673/head:pull/2673 PR: https://git.openjdk.java.net/jdk/pull/2673