Thermal printer is printing only JTable not JTextfield(which shows total amt for the bill) & How to set the size of the Bill?

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
    billupdate();

    MessageFormat header = new MessageFormat("Quotation");
    MessageFormat footer = new MessageFormat("Page");

    try {

        jTable1.print(JTable.PrintMode.FIT_WIDTH, header, footer);
        jTextField7.print(header, footer);
    } catch (java.awt.print.PrinterException e) {
        System.err.format("Cannot print %%n", e.getMessage());
    }
}