I'm having problems with a linebreak in a JLabel
. I want to have a text(name) at the top and beneith the text I want to have an int(to keep score). I have tried this but the int does not show. It shows without the html code but on the same line.
JLabel p1 = new JLabel(<html>Player 1<br> " " </html> + pointPlayer1);
Suggestions?