else {  session.requestFocus(); }  session = null;
   public void run () {      //--- Create a printerJob object      PrinterJob printJob = PrinterJob.getPrinterJob ();      printJob.setJobName("tn5250j");      //--- Set the printable class to this one since we      //--- are implementing the Printable interface      printJob.setPrintable (this);      //--- Show a print dialog to the user. If the user      //--- clicks the print button, then print, otherwise      //--- cancel the print job      if (printJob.printDialog()) {         try {            printJob.print();         } catch (Exception PrintException) {            PrintException.printStackTrace();         }      }      int len = screen.length;      for (int x = 0; x < len; x++) {         screen[x] = null;      }      screen = null;   }