Solved

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

Posted on 2004-08-24
10
286 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

770 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