Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

Posts: 18
Java MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
Posts: 21421
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.
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!