Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

How to print more than one line through MessageFormat()  RSS feed

 
Manish Dhasmana
Greenhorn
Posts: 18
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
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.
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is the same question as your old thread, which I had moved to this forum already.

Closing this one.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!