Salut,
une petite aide à approfondir:
"Les longues taches doivent être gerées par concurrence (process, threads,swingWorker)"
ex :
Code Java :
Class x implements ActionListener {
SwingWorker swingWorker;
JButton b = new JB...
d.addActionListener(this);
public void actionPerformed(ActionEvent e){
object source = e.getSource();
if(source.equals(b)){
swingWorker = new SwingWorker<Null, Void>(){
@Override
public void doInBackground() {
//actions...
return null;
}
};
} else if(...){
.
.
.
}
swingWorker.execute();
}
.
.
.
}
http://rom.developpez.com/java-swingworker
http://download.oracle.com/javase/tutorial/uiswing/concurrency/simple.htm
Bonne chance!
Kidator.






