have a method in frame1 that removes the actionlisteners, and a methodin frame2 that replacesi think .enabled() is possible although i am not sure.