question: 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 ) ; }
target:  Add filter(s) for possible types to the input file chooser.