I am currently working on a Java application using a JFrame. What I want, is to have it when someone tries to close the window, it will make a JOptionPane appear asking: "Are you sure you want to exit 3DWorld?" and then have two buttons at the bottom saying Yes and No. Any help would be great!
Thanks.
有关一些基本信息和一些帮助程序类,请参见关闭应用程序 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.