Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-24
10
Medium Priority
?
292 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
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn different types of Android Layout and some basics of an Android App.
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

972 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