The default renderers in Swing use a JLabel to render the text. A JLabel doesn't not recognize the "\n" String.
A JLabel can display HTML, so you can try using HTML for the heading. Read the section from the Swing tutorial on How to Use HTML in Swing Components for more information.