Originally Posted by
FastFuture
im tired of replying since you don't understand it
The simple solution would be to provide a straight forward answer to a question when one is asked. For example:
You have been asked several times, when the button is clicked and the jframe is to close, do you want to stop the program or leave it running. You should type one of the following in reply.
I want to close the program.
I want to leave the program running.
I want to leave the program running and open the jframe again later.
I want to leave the program running and open a new jframe.
With a simple answer to the question you were asked, we can provide a simple answer to the question you are asking, "How do you close your jframe when the button is clicked".
Since you did not provide enough information with your question, you were asked a question instead of getting an answer. The answer you get varies depending on which reply you choose to give.
So you must choose first.
You also failed to reply to this question:
When you click "it".... it what? If you just closed your jframe, what are you clicking to start spaceball?
You could also try to explain what you are trying to accomplish by closing and opening jframes. This is not an operation intended to be done frequently and on the fly. It is more of a once up front activity, and reuse the frame throughout the lifecycle of the display. Even if you load a new application from the current application, you can just swap the content pane in and out at will or show and hide all or parts at will. With all of these options built in; what are you trying to accomplish, maybe there is a more suitable approach.
Originally Posted by
FastFuture
omg just add me at skype : DimplyAndreas
its more easier to explain it over skype
It would be difficult to include a skype converstaion on this forum for future readers. Post all questions and comments related to this problem on the forum in this thread.