private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
MessageFormat headerFormat = new MessageFormat("Time Management Tool - Page {0}");
              MessageFormat footerFormat = new MessageFormat("- {0} -");
        try {
            jTable1.print(JTable.PrintMode.FIT_WIDTH, headerFormat, footerFormat);
        } catch (PrinterException ex) {
            Logger.getLogger(Homework_print.class.getName()).log(Level.SEVERE, null, ex);
        }

}//GEN-LAST:event_jButton1MouseClicked