How can I do double click on JTree
of my laptop to transfer files to server using FTP4j
thank you
public void mouseClicked(MouseEvent e) {
String s = arbre.getLastSelectedPathComponent().toString();
File file = new File(s);
if(file.isFile()) {
System.out.println("c'est un fichier");
if(e.getClickCount()==2){
client.upload(file);
}
}