Vector tmp = new Vector(); for (int i = directories; i < getSize(); i++) tmp.add(contents.get(i)); return tmp;
synchronized (contents) { Vector f = files; if (f == null) { f = new Vector(); Vector d = new Vector(); for (Iterator i = contents.iterator(); i.hasNext();) { File file = (File) i.next(); if (filechooser.isTraversable(file)) d.add(file); else f.add(file); } files = f; directories = d; } return f; }
  public Vector getFiles()  {    Vector tmp = new Vector();    for (int i = directories; i < getSize(); i++)      tmp.add(contents.get(i));    return tmp;  }