private void filterEntries()
void filterEntries()
  private void filterEntries()  {    FileFilter[] list = filechooser.getChoosableFileFilters();    if (filters.getItemCount() > 0)      filters.removeAllItems();    int index = -1;    String selected = filechooser.getFileFilter().getDescription();    for (int i = 0; i < list.length; i++)      {	if (selected.equals(list[i].getDescription()))	  index = i;	filters.addItem(list[i].getDescription());      }    filters.setSelectedIndex(index);    filters.revalidate();    filters.repaint();  }