private void findRoots(String path, int left) {
    File[] f = File.listRoots();
    String[] roots = new String[f.length];
    String t;
    int index = 0;
    session.setRootsL(new String[roots.length]);
    session.setRootsR(new String[roots.length]);
    for (int i = 0; i < f.length; i++) {
      t = f[i].getAbsolutePath();
      roots[i] = t;
    }

    Arrays.sort(roots);

    for (int i = 0; i < f.length; i++) {
      if (path.startsWith(roots[i])) {
        index = i;
      }
    }
    if (left == 1) {
      jPanel11.removeAll();
      ArrayList al = new ArrayList();
      for (int i = 0; i < roots.length; i++) {
        al.add(roots[i]);
      }

      rootBox = new JComboBox(al.toArray());
      rootBox.setSelectedIndex(index);
      rootBox.setName("1");//left one
      rootBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          changeDrive(evt);
        }
      });

      jPanel11.add(rootBox);
    }
    // right
    if (left == 0) {
      jPanel18.removeAll();
      ArrayList al = new ArrayList();
      for (int i = 0; i < roots.length; i++) {
        al.add(roots[i]);
      }
      if (logPicasa) {
        al.add("/picasa");
      }
      if (logDoc) {
        al.add("GDocs");
      }

      rootBox2 = new JComboBox(al.toArray());
      rootBox2.setName("0");//right one
      rootBox2.setSelectedIndex(index);
      rootBox2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
          changeDrive(evt);
        }
      });

      jPanel18.add(rootBox2);
    }
  }