In frame A, after click one button, frame B will be envoked. In frame B , after click button "close" , I want to close frame B, so I use: System.exit(0). , but all frames will be closed.
Can you tell me how to close just frame B ? thanks very much.