JTable Printing Landscape
Hey, quick question. I am printing a JTable using the following code:
Code java:
//Create Print Header
MessageFormat headerFormat = new MessageFormat("Monthly Summary Printout");
//Create Print Footer
MessageFormat footerFormat = new MessageFormat("- {0} -");
//Open Print Dialog
summMonthTable.print(JTable.PrintMode.FIT_WIDTH, headerFormat, footerFormat); //Where summMonthTable is a JTable
How do I set the default print orientation in the print dialog to be landscape instead of portrait?
Thanks in advance.