Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Keeing a JFrame opened from a JApplet open after the JApplet is closed.

Is this possible to do?  To keep a JFrame spawned from a JApplet open after the Japplet is closed?

Thanks experts.

0
kesea
Asked:
kesea
  • 5
  • 2
  • 2
  • +1
1 Solution
 
objectsCommented:
try making the frame referenced by a static variable.
0
 
CEHJCommented:
No
0
 
objectsCommented:
though you cannot guarantee it will stay around forever.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
objectsCommented:
how exactly is the applet getting closed?
0
 
keseaAuthor Commented:
It is getting closed by leaving the page that it is on, and going to another page.  Can I make it so that the Browser owns the Frame instead of the applet? (I want it to close if the Browser get's closed.)
0
 
objectsCommented:
you can put an applet on the page that it is going to, and have that applet (re)display your frame.
0
 
keseaAuthor Commented:
Wouldn't I lose all my information though?  Is it possible to have a static applet for the browser?  So I just create it once and then it is open until they close their browser?
0
 
objectsCommented:
> Wouldn't I lose all my information though?

you would need to save it somehow. What does the frame contain?

>  Is it possible to have a static applet for the browser?  
> So I just create it once and then it is open until they close their browser?

no
0
 
armoghanCommented:
One way could be to keep everything on a Main frame instead of the applet and somehow keep the applet invisible on main HTML page. and spawn every frame from your main frame.
0
 
CEHJCommented:
kesea - have you got that suggestion working btw?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 5
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now