timer = new Timer(1000, null); timer.setRepeats(false);
    public DoubleClickListener(JList list)    {      this.list = list;      timer = new Timer(1000, null);      timer.setRepeats(false);      lastSelected = list.getSelectedValue();      setDirectorySelected(false);    }