How to set the orientation of JTextArea from right to left (inside JOptionPane)

后端 未结 4 456
孤城傲影
孤城傲影 2020-11-27 22:54

I have JScrollPane with JTextArea inside it and I am trying to set the JTextArea\'s orientation from right to left so the text inside it will start

4条回答
  •  不知归路
    2020-11-27 23:41

    this line

    setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT)

    change the correct order of the words.

    i have this result

    KBytes 80.78

提交回复
热议问题