Well, jframe is nothing more than a class, so you could for example in jframe that will be given the return of the information create variables that will save this information so that when it closeVoce can obtelos by get’s for example...
Example>
Let’s pretend that I have a jframe already open and I will open another right now that will be the registration of a client...
then I say
Cadastro_Cliente cad = new Cadastro_Cliente();
cad.setvisible(true);
Soon my house is visible, and I’ll fill everything in it.
at the end I saved all the information in variables and also created the getteres for them.. as for example:
public String getNome(){
return this.nome;
}
Right after this form "Cad" closed with event . Dispose() I can access the values that contained in the variables..
Example:
if (cad.getNome()!=null){
system.out.println(cad.getNome());
}