Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

window

  Asked By: Karina    Date: Dec 05    Category: Java    Views: 450
  

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 before
you can access frame 1 again? But frame 1 has to show the whole time.
I tried FocusListeners but it did't seem to work

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Canan Kaya     Answered On: Dec 05

have a method in frame1 that removes the actionlisteners, and a method
in frame2 that replaces

i think .enabled() is possible although i am not sure.

 
Answer #2    Answered By: Steve Boyd     Answered On: Dec 05

u can do one thing ,just take one status variable which contain info of which
frame has to be clicked, then whatever frame  will be clicked check with status
and do appropriate action.

 
Didn't find what you were looking for? Find more on window Or get search suggestion and latest updates.




Tagged: