jButtonIndex = new JButton();
jButtonIndex.setText(LangageManager.getProperty("miage.index"));
jButtonIndex.setIcon( ResourcesRepository.getImageIcon("index.gif"));
jButtonIndex.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
final ProgressDialog progressDialog = new ProgressDialog(
TagEdit, LangageManager.getProperty("miage.foldertoupdate"),
LangageManager.getProperty("miage.updatingfolder"));
progressDialog.setAbortable(false);
progressDialog.hideAbortButton();
progressDialog.setModal(true);
new Thread(new Runnable() {
public void run() {
TreeUtil.ajoutdossier(myTreeSelectionListener.path);
progressDialog.dispose();
}
}, LangageManager.getProperty("miage.updatingfolder")).start();
progressDialog.setVisible(true);
progressDialog.dispose();
}
});
}
return jButtonIndex;
}