Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Jtable with multiple headings

Tue Oct 21, 2008 8:26 pm

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?



Post a reply
  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     -  
 send mail to Multiple recipients     -  
 calculate data from multiple selection     -  
 Code to open multiple links.     -  
 Carrier Sense Multiple Access CSMA     -  
 Need Help for Java Chat - one server multiple clients..     -