How do we changeline in a label?

前端 未结 2 1039
滥情空心
滥情空心 2021-01-16 06:25

I have a label and when setting the text I want to change line . For instance

String str=\"first line \\n Secondline \";
JLabel label.setText(str);
<         


        
2条回答
提交回复
热议问题