hide and show

i want to explain the question with an example.i have a frame and i hided it.then is it possible to just show the hidden one not to create a new frame when i run the exe file of this frame?
[217 byte] By [98028140] at [2007-9-26 1:37:35]
# 1
You can call methods show() and hide() many times. In swing JFrame has method setVisible(boolean);
wookash at 2007-6-29 2:24:31 > top of Java-index,Core,Core APIs...
# 2

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?

98028140 at 2007-6-29 2:24:31 > top of Java-index,Core,Core APIs...
# 3

> 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 ...

Hartmut at 2007-6-29 2:24:31 > top of Java-index,Core,Core APIs...