il y a une autre façon, mais je sais pas si ça amrche avec AWT, mais celui ci devrais marcher
this.addMouseListener(new EvenementListener(this));
<table border=0 cellspacing=0 cellpadding=4 bgcolor=#E0E0E0><tr><td class=code>class EvenementListener extends MouseAdapter implements ActionListener{
projet obj;
EvenementListener(projet obj){
this.obj = obj;
}
public void mouseClicked(MouseEvent e){
obj.mouseEvent(e);
}
public void actionPerformed(ActionPeEvent e){
System.exit(0);
}
}