je veux désactiver le bouton Fermer d'une JFrame, j'utilise le code dans la méthode initialize():
this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
puis je remplace par:
this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
mais le même le bouton fermer reste active.
Note : j'ai travaillé avec eclipse.
Merci bien pour votre aide.
Partager