Align Strings in columns in JTextArea

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

    You may use HTML with swing component or use JEditorPane.

    JLabel jt=new JLabel();
    jt.setText("
                
    NoName
    1Mr.A
    ");

提交回复
热议问题