Align Strings in columns in JTextArea

后端 未结 4 1209
渐次进展
渐次进展 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:14

    Use a JTable instead (for what is apparently tabular information). See How To Use Tables for more details & working examples.

    Table Sort Demo

提交回复
热议问题