Bonjour,
J'ai fait une JDialog comme ceci
Quand j'en ai fini avec elle, je fais appelle à la méthode dispose. Mais rien ne se passe. Elle reste tout en premier plan.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 addWindowListener(new WindowAdapter() { public void windowDeiconified(java.awt.event.WindowEvent e){} public void windowIconified(WindowEvent e){} public void windowActivated(WindowEvent e){} public void windowDeactivated(WindowEvent e){setVisible(true);requestFocus();} public void windowClosing(WindowEvent e){} public void windowClosed(WindowEvent e){} public void windowLostFocus(WindowEvent e){} }); setUndecorated(true); pack(); setResizable(false); setLocationRelativeTo(this.getParent());
Avez vous une idée de mon erreur ?
Merci







Répondre avec citation





Partager