Solved

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

Posted on 2004-08-24
10
284 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
 
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Receive file in Servlet 1 36
endX challenge 2 50
Problem to start Neon 20 54
Cipher Configuration on Apache HTTPD 4 24
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now