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 ; }
Opens a file with the default application .