Close JFrame

I was wondering how can i make my App close when i click a certain menuItem is there some type of metthod that i can call in order for it to close on click?
[163 byte] By [brianb7590a] at [2007-11-27 4:29:19]
# 1
dispose()
CaptainMorgan08a at 2007-7-12 9:38:17 > top of Java-index,Java Essentials,New To Java...
# 2
i tried that method but it didnt do anything. i used this.dispose();on the class extending JFrame inside the action listener for that item and it didn't work...
brianb7590a at 2007-7-12 9:38:17 > top of Java-index,Java Essentials,New To Java...
# 3
Are you sure the actionPerformed() method is getting called?
CaptainMorgan08a at 2007-7-12 9:38:17 > top of Java-index,Java Essentials,New To Java...
# 4
nevermind i got it i hadnt added the action listenr to the menu item sorry.....Message was edited by: brianb7590
brianb7590a at 2007-7-12 9:38:17 > top of Java-index,Java Essentials,New To Java...