
Non, c'est bon, j'ai trouvé, j'utilisait un
addWindowListener(new MonAdapter());
avec un :
class MonAdapter extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}
Mais cela ferme toute les JFrame, alors qu'il me suffisais d'un:
addWindowStateListener(new MonAdapter());
Et hop ça marche!!!!! merci en tout ca