question: private void cmd_selectFile ( ) { JFileChooser fc = new JFileChooser ( ) ; fc . setMultiSelectionEnabled ( false ) ; if ( fc . showOpenDialog ( this ) != JFileChooser . APPROVE_OPTION ) return ; File f = fc . getSelectedFile ( ) ; if ( f == null || ! f . isFile ( ) ) return ; String fileName = f . getAbsolutePath ( ) ; fSelectFile . addItem ( fileName ) ; fSelectFile . setSelectedItem ( fileName ) ; }
target:  Select File and add to selection