Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable.print: how to change the header/footer font?

843806Jun 19 2008 — edited Jun 19 2008
I am printing a JTable with JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive)
(see: javadoc ).

Is there any way to change the font size the header and footer are displayed in, without resorting to setting up the print manually?

Possibly useful info:
In javax.swing.TablePrintable.java, headerFont is private (so I can't change it by subclassing) and depends on the private final variable HEADER_FONT_SIZE.

Thanks in advance.

Edited by: nsteinberg on Jun 19, 2008 11:54 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2008
Added on Jun 19 2008
2 comments
484 views