|
nel costruttore del JFrame usa la seguente istruzione:
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
in questo modo quando premi il pulsante di chiusura il frame non si chiude; puo inoltre intercettare l'evento registrando un windowslistener.
__________________
Sun Certified Java Programmer
EUCIP Core Level Certified
European Certification of Informatics Professionals
|