The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Printing a JTable with a specific renderer

Posted by Sandrine on May 03, 2001 at 10:02 AM

How is it possible to print a JTable when you have defined a specific renderer(check box for booleans...) with the getColumnClass(int c) method (found in the java tutorial site - How to use Tables / I use a class that extends Printable. When I try to print my JTable, an exception occurs:
"java.lang.IllegalArgumentException: Zero length string passed to TextLayout constructor.
at java.awt.font.TextLayout.(
at sun.java2d.PeekGraphics.drawString("


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us