protected File chooseFile(int type){
  Frame frame=getFrame();
  File f=null;
  if (fileChooser == null)   fileChooser=new JFileChooser();
  fileChooser.setCurrentDirectory(E00File);
  if (type == 0)   fileChooser.setDialogType(JFileChooser.OPEN_DIALOG);
 else   fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);
  int retval=fileChooser.showDialog(frame,null);
  if (retval == JFileChooser.APPROVE_OPTION)   f=fileChooser.getSelectedFile();
  return f;
}

protected File chooseFile ( int type ) { Frame frame = getFrame ( ) ; File f = null ; if ( fileChooser == null ) fileChooser = new JFileChooser ( ) ; fileChooser . setCurrentDirectory ( E00File ) ; if ( type == 0 ) fileChooser . setDialogType ( JFileChooser . OPEN_DIALOG ) ; else fileChooser . setDialogType ( JFileChooser . SAVE_DIALOG ) ; int retval = fileChooser . showDialog ( frame , null ) ; if ( retval == JFileChooser . APPROVE_OPTION ) f = fileChooser . getSelectedFile ( ) ; return f ; }
description of the method
