Exiting when the user selects "Exit" from the "File" menu in an application

Hello there,I would like to know how to exit a java application when the user selects "Exit" from the "File" Menu. I am trying to develop and irc application. I have done the menus so far, which resembles the Mirc menus.Please send me some code examples.Curious_Ernest
[296 byte] By [Curious_Ernest] at [2007-9-30 22:10:41]
# 1
Look up System.exit(int)
ChuckBing at 2007-7-7 11:23:47 > top of Java-index,Administration Tools,Sun Connection...
# 2
http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html
MohdSleem at 2007-7-7 11:23:47 > top of Java-index,Administration Tools,Sun Connection...