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]

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