code: public static boolean openFile(final File f) {
  		if (desktop != null && f.exists() && f.isFile()) {
  			try {
  				desktop.open(f);
  				return true;
  			} catch (final IOException e) {
  				Logger.getLogger(FastOds.class.getName()).log(Level.SEVERE,
  						"Can't open file " + f + " in appropriate application",
  						e);
  			}
  		}
  		return false;
  	}
docs: Opens a file with the default application.
  
  @param f
  the file to open
  @return true if succeeded, false otherwise.