i am making a small application where i have used system tray. i have set the default close operation to DISPOSE_ON_CLOSE. there is a menu item named "EXIT" in the TrayIcon's popup menu. When i click the "EXIT" on the popup menu i want the application to behave as it does for default close operation on EXIT_ON_CLOSE. if anyone know how to do that,plz let me know