0
Center Text in textarea JFrame (Java)
Hii! I was wondering how to center the text that is the output in a textarea (in a JFrame) . Can anyone help me out? What do I write to let the text stay in the center of the textarea?
1 Odpowiedź
0
You want to use JTextPane for that. You might find your answer here:
https://stackoverflow.com/questions/3213045/centering-text-in-a-jtextarea-or-jtextpane-horizontal-text-alignment