Pourtant je fais bien un toFront();
code :
public class Frame_cv extends Frame {
Chat chat;
Frame_cv( Chat chat ){
this.chat=chat;
toFront();
setResizable( false );
setTitle("CV personnel" );
setBackground(Color.green);
setSize(200,200);
setUndecorated(true);
/* Centrer la frame */
Point p = chat.getLocation();
Dimension d1 = chat.getSize();
Dimension d2 = getSize();
p.translate( (d1.width - d2.width)/2, (d1.height - d2.height)/2 );
setLocation(p);
/***********************/
repaint();
addWindowListener(new FermeWindow());
addMouseListener(new Frame_cv.AppletMouse());
addKeyListener(new Keylist());
}
}