posted 17 years ago
I'm a bit lost with the description too, but this may handle your problem
add an actionListener to frameA's logoutButton, and in actionPerformed(..)
[frameA].setVisible(false):
new FrameB([frameA]);//include code for visibility of FrameB, if required
now, in the code for FrameB:
1) include a reference parameter (to frameA) in the constructor
2) add a windowListener, and in windowClosing(..) frameA.setVisible(true);