public void addLocalConnection(String name, BasicConnection con)
{
con.addConnectionListener((ConnectionListener) remoteDir);
Dir tmp = (Dir) new LocalDir();
tmp.setDownloadList(dList);
con.addConnectionListener((ConnectionListener) tmp);
tmp.setCon(con);
int x = localConnectionPanel.getSelectedIndex();
localConnectionPanel.addTab(parse(name), null, (Component) tmp,
"Switch to: " + parse(name));
localConnectionPanel.setSelectedIndex(x + 1);