I want to Print JTABLE and A value from Text Field. Its like products detail and there Bill Print. Here is the image.
Required Print is Table + Total Amount,
But so far i got JTable.print()
only print table. is there any way to add other values at end as total ??
Here is the code of printing jtable.
MessageFormat header = new MessageFormat("Purchases Bill {0,number,integer}");
try {
table.print(JTable.PrintMode.FIT_WIDTH, header, null);
} catch (java.awt.print.PrinterException e) {
System.err.format("Cannot print %s%n", e.getMessage());
}