I have two JFrames: JFrame A and JFrame B. JFrame A
opens/ instantiates JFrameB. Now, the problem arises
when i want to close JFrame B only, by using the OK
button. I don't know what code to use to do that. I
tried putting the "System.exit(0)" inside the
actionPerformed() method but it closes both JFrames.