protected void addChooserFilters(JFileChooser chooser){
  javax.swing.filechooser.FileNameExtensionFilter filter;
  chooser.addChoosableFileFilter(filter=new javax.swing.filechooser.FileNameExtensionFilter("Intel Hex Format Firmware (*.hex)","hex"));
  chooser.setFileFilter(filter);
}

protected void addChooserFilters ( JFileChooser chooser ) { javax . swing . filechooser . FileNameExtensionFilter filter ; chooser . addChoosableFileFilter ( filter = new javax . swing . filechooser . FileNameExtensionFilter ( "Intel Hex Format Firmware (*.hex)" , "hex" ) ) ; chooser . setFileFilter ( filter ) ; }
add filter ( s ) for possible types to the input file chooser .
