i think you misunderstand me.
i will try to be more clear.
i have a frame and a button on it.
when the button is clicked i hide the frame.
what i want to do is that:
when i recompile the frame i dont want to create a new frame. i want only the hidden one to be visible.
so i should know if a frame is already running on the machine.
is that possible?
> when i recompile the frame i dont want to create a new
> frame. i want only the hidden one to be visible.
> so i should know if a frame is already running on the
> machine.
What do you mean with "recompile " ?
Possibly: if you start the program again, you want to use the hidden frame of its last session, when the program was running?
Each time you start a Java program it is running on its own JVM process.
To pass objects from one process to another you would have to let them communicate, e.g. over RMI.
I don't think that this should be recommended.
It will be much easier and more secure to create the frame object always.
And what is with the process that had created the - now hidden - frame. Why not simply use this one to make the frame visible again? This is just the suggestion you have got already ...