-1

Is it possible to restart the same application which is running from within itself.

Like say,I have a form which opens on button click.Now once this form is opened,i want to refresh its display and so I recall the init method again from within this form.

I am looking out to reopen/refresh a tabbed pane thats already enabled open.How exactly can it be achieved.

Is this really possible?Please guide

Please go through this link to have a better understanding of my issue.Feel free to communicate if it still is not understandable.Thanks.

Community
  • 1
  • 1
learning_fly
  • 386
  • 1
  • 2
  • 11
  • 2
    Yes it's possible, but if you want more help, consider supplying more information. It's frustrating when we have to drag the information out of posters. Please have a look at [how to ask smart questions](http://catb.org/~esr/faqs/smart-questions.html). – Hovercraft Full Of Eels May 19 '12 at 11:31
  • Sure.I'll elaborate my doubt. – learning_fly May 19 '12 at 11:34
  • Again, the logic of doing this will depend on the details of your program, information that you're *still* not telling us. Voting to close. – Hovercraft Full Of Eels May 19 '12 at 11:42
  • 2
    So your question is nothing more than a duplicate of your [previous question on SO](http://stackoverflow.com/questions/10657112/refresh-tab-panes-display-without-reopening-the-application), the only difference being that this time you show a lot less information? Don't re-ask your question as this goes against forum rules and is not fair to the volunteers of this forum. This needs to be closed. – Hovercraft Full Of Eels May 19 '12 at 12:14
  • I apologize for the inability in asking a "to the point question". The earlier question was based on invoking a method of second tab from first tab.Here i am looking out to completely restart the second pane and not access & invoke the inheld methods of pane 2. – learning_fly May 19 '12 at 12:21

1 Answers1

1

Read this article. I'm not really sure what are you trying to do, but it seems that you don't really need to restart the whole application. Can you just make a new instance of the form and swap them?

Take a look at this documentation if you are using Swing.

Nefron
  • 689
  • 6
  • 10
  • Thats pretty much what i am looking for.Albeit here i want to reopen a tabbed pane thats already open. – learning_fly May 19 '12 at 11:38
  • 1
    @learning_fly: No, you don't want to do this, but rather simply have a `reinitialize()` or `reset()` method as part of your GUI, that's it. But the logic of the method will depend on all the things you're still not telling us. – Hovercraft Full Of Eels May 19 '12 at 11:41