0

Can we use close button for closing and terminating the program of awt in java ?

Like we use in swing setDefaultCloseOperation for closing and terminating the program at the same time ... so is there any way we can use the same thing in awt???

22nd Dec 2016, 7:01 PM
Rishabh Saxena
Rishabh Saxena - avatar
2 Respuestas
+ 4
activity.finish(); (...not sure...)
22nd Dec 2016, 7:09 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
i think it can be done by window listener .. but don't know exactly 😑😑
22nd Dec 2016, 7:11 PM
Rishabh Saxena
Rishabh Saxena - avatar