'How to set a text in JTextArea on top?

When I put a text in my JTextArea the text always on the bottom. How can I put the text on the top of JTextArea? enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source