private void addSchemas(){
  NamedMediaType nmt;
  JPanel panel=new JPanel(new MigLayout("insets 0, fillx"));
  Dimension dim=new Dimension(400,30);
  panel.setPreferredSize(dim);
  panel.setMinimumSize(dim);
  panel.setMaximumSize(new Dimension(100000,30));
  nmt=NamedMediaType.getFromDescription(MediaType.SCHEMA_AUDIO);
  tooltipPlaceHolders.put(nmt,I18n.tr("%s Audio files found (including .mp3, .wav, .ogg, and more)"));
  addMediaType(panel,nmt,String.format(tooltipPlaceHolders.get(nmt),0));
  nmt=NamedMediaType.getFromDescription(MediaType.SCHEMA_VIDEO);
  tooltipPlaceHolders.put(nmt,I18n.tr("%s Video files found (including .avi, .mpg, .wmv, and more)"));
  addMediaType(panel,nmt,String.format(tooltipPlaceHolders.get(nmt),0));
  nmt=NamedMediaType.getFromDescription(MediaType.SCHEMA_IMAGES);
  tooltipPlaceHolders.put(nmt,I18n.tr("%s Image files found (including .jpg, .gif, .png and more)"));
  addMediaType(panel,nmt,String.format(tooltipPlaceHolders.get(nmt),0));
  nmt=NamedMediaType.getFromDescription(MediaType.SCHEMA_DOCUMENTS);
  tooltipPlaceHolders.put(nmt,I18n.tr("%s Document files found (including .html, .txt, .pdf, and more)"));
  addMediaType(panel,nmt,String.format(tooltipPlaceHolders.get(nmt),0));
  nmt=NamedMediaType.getFromDescription(MediaType.SCHEMA_PROGRAMS);
  tooltipPlaceHolders.put(nmt,I18n.tr("%s Program files found (including .exe, .zip, .gz, and more)"));
  addMediaType(panel,nmt,String.format(tooltipPlaceHolders.get(nmt),0));
  nmt=NamedMediaType.getFromDescription(MediaType.SCHEMA_TORRENTS);
  tooltipPlaceHolders.put(nmt,I18n.tr("%s Torrent files found (includes only .torrent files. Torrent files point to collections of files shared on the BitTorrent network.)"));
  addMediaType(panel,nmt,String.format(tooltipPlaceHolders.get(nmt),0));
  add(panel,BorderLayout.LINE_START);
}

private void addSchemas ( ) { NamedMediaType nmt ; JPanel panel = new JPanel ( new MigLayout ( "insets 0, fillx" ) ) ; Dimension dim = new Dimension ( 400 , 30 ) ; panel . setPreferredSize ( dim ) ; panel . setMinimumSize ( dim ) ; panel . setMaximumSize ( new Dimension ( 100000 , 30 ) ) ; nmt = NamedMediaType . getFromDescription ( MediaType . SCHEMA_AUDIO ) ; tooltipPlaceHolders . put ( nmt , I18n . tr ( "%s Audio files found (including .mp3, .wav, .ogg, and more)" ) ) ; addMediaType ( panel , nmt , String . format ( tooltipPlaceHolders . get ( nmt ) , 0 ) ) ; nmt = NamedMediaType . getFromDescription ( MediaType . SCHEMA_VIDEO ) ; tooltipPlaceHolders . put ( nmt , I18n . tr ( "%s Video files found (including .avi, .mpg, .wmv, and more)" ) ) ; addMediaType ( panel , nmt , String . format ( tooltipPlaceHolders . get ( nmt ) , 0 ) ) ; nmt = NamedMediaType . getFromDescription ( MediaType . SCHEMA_IMAGES ) ; tooltipPlaceHolders . put ( nmt , I18n . tr ( "%s Image files found (including .jpg, .gif, .png and more)" ) ) ; addMediaType ( panel , nmt , String . format ( tooltipPlaceHolders . get ( nmt ) , 0 ) ) ; nmt = NamedMediaType . getFromDescription ( MediaType . SCHEMA_DOCUMENTS ) ; tooltipPlaceHolders . put ( nmt , I18n . tr ( "%s Document files found (including .html, .txt, .pdf, and more)" ) ) ; addMediaType ( panel , nmt , String . format ( tooltipPlaceHolders . get ( nmt ) , 0 ) ) ; nmt = NamedMediaType . getFromDescription ( MediaType . SCHEMA_PROGRAMS ) ; tooltipPlaceHolders . put ( nmt , I18n . tr ( "%s Program files found (including .exe, .zip, .gz, and more)" ) ) ; addMediaType ( panel , nmt , String . format ( tooltipPlaceHolders . get ( nmt ) , 0 ) ) ; nmt = NamedMediaType . getFromDescription ( MediaType . SCHEMA_TORRENTS ) ; tooltipPlaceHolders . put ( nmt , I18n . tr ( "%s Torrent files found (includes only .torrent files. Torrent files point to collections of files shared on the BitTorrent network.)" ) ) ; addMediaType ( panel , nmt , String . format ( tooltipPlaceHolders . get ( nmt ) , 0 ) ) ; add ( panel , BorderLayout . LINE_START ) ; }
adds the given schemas as radio buttons .
