How to do Printing with JTable and the text above and under it.

Hi,

I was uncomfortable with printing. Suppose a frame/form is there with some lines of text and followed the JTable and again followed the Text of some lines. So to print the entire form as a sequence of Text lines-JTable-Text Lines creating trouble. So is there a way to cleanly finish the task. Any help please greatly appreciated.

thanx,

Vijaycanaan.

[379 byte] By [vijaycanaana] at [2007-11-27 10:18:07]
# 1

Search google or this site for my StandardPrint class

tjacobs01a at 2007-7-28 15:55:38 > top of Java-index,Desktop,Core GUI APIs...
# 2

Also check out the print( ) methods of the JTable class (jdk 5.0 upward).

These functions can take a MessageFormat objects that can be used to specify header and footer texts to be printed along with the JTable (just as in your case). Aslo check out your swing demos (in your jdk folder), under the jfc/SwingSet2 demo. This has a working example of how to print a JTable (again jdk 5.0 upwards)

ICE

icewalker2ga at 2007-7-28 15:55:38 > top of Java-index,Desktop,Core GUI APIs...