Printing and Preview of Nested JTable not working and performance is slow....

I have a problem in printing and preview of JTable which is nested. I mean to say, that if the table is simple it is printing the contents correctly and also its preview. But if it is a nested, that is table is having another table with its own headers etc.. then the nested table is not getting printed correctly. Only its object is shown, like {com.hyd.nms.detail} instead of its contents.

Could you please help me whether it is possible to print a nested table, and how to take care of the same.

Also, it takes much time to open the preview dialog to display. So ,any tips on improving the performance in java for printing.

Below is the snapshot of code.... which I downloaded from one of the sites.. and using the same.