Java: Dispose ActionEvent from different JFrame
===

I want one JFrame to have a method like this:

    private void someEvent(java.awt.event.ActionEvent evt){
        
        //initialize another JFrame
        //set the new JFrame to be visible
        //set this JFrame to be disabled

    }

Which is possible, but I also want the main JFrame to perform something when the newly created JFrame is disposed. I don't want to pass in the main JFrame to the new JFrame however. Is this possible?