MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir);
   private void getPCFile() {      String workingDir = System.getProperty("user.dir");      MyFileChooser pcFileChooser = new MyFileChooser(workingDir);      int ret = pcFileChooser.showSaveDialog(new JFrame());      // check to see if something was actually chosen      if (ret == JFileChooser.APPROVE_OPTION) {         File file = pcFileChooser.getSelectedFile();         StringBuffer sb = new StringBuffer();         char[] s = screen.getScreenAsChars();         int c = screen.getCols();         int l = screen.getRows() * c;         int col = 0;         for (int x = 0; x < l; x++,col++) {            sb.append(s[x]);            if (col == c) {               sb.append('\n');               col = 0;            }         }         writeToFile(sb.toString(),file);      }   }