• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing more than one line with MessageFormat()  RSS feed

Posts: 18
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to print a table with a company name and its work in the header.I have written the following code:

tableobject.print(JTable.PrintMode.FIT_WIDTH,new MessageFormat("company name"),new MessageFormat("page number"));

I have no problem with printing the table with the single line header.I want to print the name and description of the company but I don't know how to print the description of the company in the second line using the same MessageFormat(), which I am using to print the company name.
Thank You in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!