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);
}

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 ) ; }
select file and add to selection
