Java Programming - Doubt on dispose() method

I have a java gui window from which i am opening another window which is jframe. Now to close this subwindow (jframe), i have used dispose() method. But this totally terminating application. Is dispose() method same as System.exit() or am i missing anything here.
[270 byte] By [ArpanaKa] at [2007-11-26 23:03:10]
# 1
browse the following link, i am sure your answer is there.. http://mindprod.com/jgloss/packratting.htmlsandip
sandipsamantaa at 2007-7-10 13:54:29 > top of Java-index,Java Essentials,Java Programming...
# 2
browse the following link, i am sure your answer isthere.. http://mindprod.com/jgloss/packratting.htmlsandipBut that link no where explains about the difference between System.exit vs dispose method
ArpanaKa at 2007-7-10 13:54:29 > top of Java-index,Java Essentials,Java Programming...
# 3
dispose() may terminate the JVM, if it is called on the last remaining instance of java.awt.Window, of which JFrame is a subclass
georgemca at 2007-7-10 13:54:29 > top of Java-index,Java Essentials,Java Programming...
# 4
dispose() may terminate the JVM, if it iscalled on the last remaining instance ofjava.awt.Window, of which JFrame is a subclassOk. Thanks. I learned a new point. This cleared my doubt
ArpanaKa at 2007-7-10 13:54:29 > top of Java-index,Java Essentials,Java Programming...