View RSS Feed

Recent Blogs Posts

  1. JTable Printing

    by , 04-26-2012 at 09:47 PM
    Simple API is provided by the JTable to print the tables. Priting of the table could easily be done by invoking JTable.print, with no arguments:
    Java Code:
    try {
        if (! table.print()) {
            System.err.println("User cancelled printing");
    } catch (java.awt.print.PrinterException e) {
        System.err.format("Cannot print %s%n", e.getMessage());
    At normal swing, print is invoked that will bring the ...