Total members 11894 |It is currently Mon Nov 25, 2024 11:12 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Hi all, pls how can one print a jtable with multiple lines heading
using the MessageFormat objects?

i created a method which prints a jtable with headings like this

Code:
String msg = "BANK SCHEDULE FOR "+bank+", "+month+" "+year;
MessageFormat header = new MessageFormat(msg);
MessageFormat footer = new MessageFormat("DASH, LAFIA");
try{
jTable1.print(JTable.PrintMode.FIT_WIDTH, header, footer);
}catch(Exception ex){}


even with new line character, the head does not print on two lines. How
can i resolve this problems?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Jtable with multiple headings
 JTable example     -  
 JTable usage example with JPanel     -  
 Multiple Inheritance     -  
 Multiple Exception Catching     -  
 Using Multiple Values for a Cookie in php     -  
 Code to open multiple links.     -  
 send mail to Multiple recipients     -  
 calculate data from multiple selection     -  
 Carrier Sense Multiple Access CSMA     -  
 Need Help for Java Chat - one server multiple clients..     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com