Jframe window not closing

Hi can anyone plz tell me how i will close my jframe window..I have a button called EXIT,clicking which i want to close my Frame...I am writiing setvisible(false) but thats not working..
[207 byte] By [profilemia] at [2007-11-27 4:40:24]
# 1
use System.exit(0);All the best
amir430a at 2007-7-12 9:51:32 > top of Java-index,Desktop,Core GUI APIs...
# 2
grt..thnx..
profilemia at 2007-7-12 9:51:32 > top of Java-index,Desktop,Core GUI APIs...
# 3
Better yet, call frame.dispose()
BinaryDigita at 2007-7-12 9:51:32 > top of Java-index,Desktop,Core GUI APIs...