In Java, use SWT to create the main window. I want to pop up a dialog box when clicking the closure button to determine whether to exit the system or minimize it to the tray ...
But after the dialog box pops up, click the closed button on the dialog box, and the main window is closed. How to solve this problem! Which master can help solve, thank you