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); <
String str=\"first line \\n Secondline \"; JLabel label.setText(str);
Use this string
String str= "First lineSecond line"