I have 2 JFrames. Now when u click a button on frame 1 frame 2 shows.How can i make it that you have to click a button on frame 2 beforeyou can access frame 1 again? But frame 1 has to show the whole time.I tried FocusListeners but it did't seem to work
have a method in frame1 that removes the actionlisteners, and a methodin frame2 that replacesi think .enabled() is possible although i am not sure.
u can do one thing ,just take one status variable which contain info of whichframe has to be clicked, then whatever frame will be clicked check with statusand do appropriate action.