The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

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.

Message:

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 / TableDemo.java)? 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.(TextLayout.java:337)
at sun.java2d.PeekGraphics.drawString(PeekGraphics.java:846)"





Replies:

Sponsored Links



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