Align Strings in columns in JTextArea

后端 未结 4 1216
渐次进展
渐次进展 2020-12-10 06:54

I want to print Strings in JTextArea and align them properly. Its hard to explain so I will upload the screen shot of what I am trying to achieve.

4条回答
  •  青春惊慌失措
    2020-12-10 07:15

    You can also change the font of the JTextArea if it is allowed in your problem

    textArea.setFont(new Font("monospaced", Font.PLAIN, 12));
    

提交回复
热议问题