Closing a sub jframe closes my application

Hi,A beginner question. I have multiple jframe forms in my application. From my main windows i call sub jframes. The problem is that when the user closes a sub jframe my application terminates. How can overcome this problem.Thanks in advace.
[262 byte] By [wiseaarona] at [2007-11-26 22:40:44]
# 1
Don't set the default close operation to "exit on close."
itchyscratchya at 2007-7-10 11:54:46 > top of Java-index,Desktop,Core GUI APIs...
# 2
:) Thanks. It worked.
wiseaarona at 2007-7-10 11:54:46 > top of Java-index,Desktop,Core GUI APIs...