Reputation: 99
I have JTable which looks correct in program, but then I print it where is no borders above columns and rows only one border above all table.
Here is print code:
MessageFormat header = new MessageFormat("Print Report");
MessageFormat footer = new MessageFormat("Page{0,number,integer}");
try {
registras_table.print(JTable.PrintMode.FIT_WIDTH, header, footer);
} catch (PrinterException ex) {
Logger.getLogger(pagrindinis.class.getName()).log(Level.SEVERE, null, ex);
}
How to set that borders for printing? Thank you!
Upvotes: 0
Views: 148