import java.awt.desktop.QuitEvent;
import java.awt.desktop.QuitHandler;
import java.awt.desktop.QuitResponse;
+import java.awt.desktop.QuitStrategy;
import java.awt.dnd.DnDConstants;
import java.awt.dnd.DropTargetDragEvent;
import java.awt.dnd.DropTargetDropEvent;
{
System.out.println("Shortcut Quit confirmed by user");
quit();
+ r.performQuit(); // probably won't reach this line, but just in case
}
else
{
+ r.cancelQuit();
System.out.println("Shortcut Quit cancelled by user");
}
}
});
+ hdesktop.setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS);
// }