The title says it... I'm trying to print it with myJTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat).
I tried inserting "\n" into the headerFormat string but it didn't work and i have no idea how to do it.
I have googled this problem but all the topics on forums i found remain unanswered.
Anybody knows how to solve this, especially using the core api?
I tried the html but it prints out the tags together with the rest of the text...and again in one line. While googling i saw that people enter a new line like this
new MessageFormat("some text \n");
But it seems not to be working in Jtable's print method...
More suggestions would be great.
subject: How to print JTable with multi-line header?