Solved

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

Posted on 2004-08-24
10
289 Views
Last Modified: 2008-02-26
Is this possible to do?  To keep a JFrame spawned from a JApplet open after the Japplet is closed?

Thanks experts.

0
Comment
Question by:kesea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 92

Expert Comment

by:objects
ID: 11887661
try making the frame referenced by a static variable.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11887664
No
0
 
LVL 92

Expert Comment

by:objects
ID: 11887668
though you cannot guarantee it will stay around forever.
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
LVL 92

Expert Comment

by:objects
ID: 11887764
how exactly is the applet getting closed?
0
 

Author Comment

by:kesea
ID: 11888308
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
 
LVL 92

Expert Comment

by:objects
ID: 11888342
you can put an applet on the page that it is going to, and have that applet (re)display your frame.
0
 

Author Comment

by:kesea
ID: 11888397
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
 
LVL 92

Expert Comment

by:objects
ID: 11888432
> 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
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 11889129
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 11904568
kesea - have you got that suggestion working btw?
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question