M. Na. M. Na. - 1 year ago 97
Java Question

How can I align the text in JTextArea in java gui swing

How can I align the text in the textarea in java swing , is there a property for this and how ?...

Answer Source

This should work out:

JTextArea jTextArea = new JTextArea();

(credit to Braj for this answer).

Also, this should give you more information: How to set the orientation of JTextArea from right to left (inside JOptionPane)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download