if (parents.getItemCount() > 0) parents.removeAllItems(); for (int i = parentFiles.size() - 1; i >= 0; i--) parents.addItem(parentFiles.get(i)); parents.setSelectedIndex(parentFiles.size() - 1); parents.revalidate(); parents.repaint();
  void boxEntries()  {    ArrayList parentFiles = new ArrayList();    File parent = filechooser.getCurrentDirectory();    if (parent == null)      parent = filechooser.getFileSystemView().getDefaultDirectory();    while (parent != null)      {        String name = parent.getName();        if (name.equals(""))          name = parent.getAbsolutePath();        parentFiles.add(parentFiles.size(), name);        parent = parent.getParentFile();      }    if (parentFiles.size() == 0)      return;    if (parents.getItemCount() > 0)      parents.removeAllItems();    for (int i = parentFiles.size() - 1; i >= 0; i--)      parents.addItem(parentFiles.get(i));    parents.setSelectedIndex(parentFiles.size() - 1);    parents.revalidate();    parents.repaint();  }