I have a JTree which shows content of specific directory. When a download some file with ftp to this directory i want to let my JTree know about it and refresh his contents. How can i refresh JTree after some file added or removed from directory which is root for JTree?
btnRefreshContents.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
tree.getModel().
}
});