<Swing Dev> RFR: 4710675: JTextArea.setComponentOrientation does not work with correct timing [v2]
    Prasanta Sadhukhan 
    psadhukhan at openjdk.java.net
       
    Thu Feb 25 04:37:01 UTC 2021
    
    
  
> 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.
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
  Remove robot reliance
-------------
Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2673/files
  - new: https://git.openjdk.java.net/jdk/pull/2673/files/09052724..efec94fc
Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2673&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2673&range=00-01
  Stats: 13 lines in 2 files changed: 6 ins; 3 del; 4 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
    
    
More information about the swing-dev
mailing list