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(s tr);
I tried the above code but it does not work..How do I change line in a string ?
For instance
String str="first line \n Secondline ";
JLabel label.setText(s tr);
I tried the above code but it does not work..How do I change line in a string ?
Comment