SyntaxFix
Write A Post
Hire A Developer
Questions
Surround the string with <html></html> and break the lines with <br/>.
<html></html>
<br/>
JLabel l = new JLabel("<html>Hello World!<br/>blahblahblah</html>", SwingConstants.CENTER);