Here is my code what I did
MessageFormat headerFormat = new MessageFormat("Name: "+name+""+"Job No:"+job+" "+" Total-Amount: "+total);
MessageFormat footerFormat = new MessageFormat("Details Report of "+date);
table.print(JTable.PrintMode.FIT_WIDTH,headerFormat, footerFormat);
This shows output as a line but I want to show the output message like as:
Name:Myname
Job No:12
Total-Amount:200
Please help me to out of this...thanks in advance