Solved

IE browser not closing with JRE1.5 applet

Posted on 2006-06-27
15
909 Views
Last Modified: 2013-11-18
Hi,

   I have an swing applet which has been loaded in IE using JRE1.5 plugin. Now if I click the close button in the browser, it is not closing but allows me to close after clicking the refresh button.

Any idea?

Note: The applet is been launched using some javascript. i.e., clicking a html button will launch the applet and the applet will be displayed out of the browser, ie., not embeded in the browser.
0
Comment
Question by:ksivananth
  • 8
  • 5
15 Comments
 
LVL 26

Author Comment

by:ksivananth
ID: 16996918
applet is launched through the below JS,

function launchApplet(appName,className){
      var c=document.getElementById("appletContainer");
      c.innerHTML="<applet>...</applet>";
      return false;
}
0
 
LVL 92

Expert Comment

by:objects
ID: 16996955
whats the applet doing, make sure the start() and stop() methods are implemented correctly
0
 
LVL 26

Author Comment

by:ksivananth
ID: 16996972
ya, they are implemented properly.

FYI, the same app works fine if the plugin is 1.4.2.

BTW, what makes difference here if I don't implement stop()?
0
 
LVL 92

Expert Comment

by:objects
ID: 16997058
strange, not sure what the problem is.
What does your applet do, any threading?

> BTW, what makes difference here if I don't implement stop()?

its more if u do implement stop() and do some long processing.
0
 
LVL 26

Author Comment

by:ksivananth
ID: 16997096
Yep, it has lot of threads.

The stop method itself is not called. The strange behaviour in browser is, when I clicked the applet launcher button, the IE icon in right top of the browser is changed to inprogress state and it never get to the original.
0
 
LVL 92

Expert Comment

by:objects
ID: 16997105
your stop() method should be closing any threads that have been started.
0
 
LVL 26

Author Comment

by:ksivananth
ID: 16997119
Note: As soon as click on the applet launcher button, the close button in the browser doesn't work. The application will launch threads only after the user logged in to that.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 26

Author Comment

by:ksivananth
ID: 16997122
and at the same time, the close button works fine after click the refresh button in the browser.
0
 
LVL 92

Expert Comment

by:objects
ID: 16997806
try and simple applet that does nothing and see if you get same behaviour
may be a general problem with your installation
0
 
LVL 26

Author Comment

by:ksivananth
ID: 16997821
any idea what the below exception is and how to workaround,

Exception in thread "Thread-15" java.lang.NullPointerException: null pData
      at sun.awt.windows.WComponentPeer._dispose(Native Method)
      at sun.awt.windows.WComponentPeer.disposeImpl(Unknown Source)
      at sun.awt.windows.WObjectPeer.dispose(Unknown Source)
      at java.awt.Component.removeNotify(Unknown Source)
      at org.jdesktop.jdic.browser.WebBrowser.access$201(Unknown Source)
      at org.jdesktop.jdic.browser.WebBrowser$2.run(Unknown Source)

I think, JDIC browser has some issues with 1.5!
0
 
LVL 92

Expert Comment

by:objects
ID: 16997843
no idea sorry

> I think, JDIC browser has some issues with 1.5!

looks like it
0
 
LVL 26

Author Comment

by:ksivananth
ID: 17005168
I am able to workaround this problem on my own. I have removed the javascript code and used framesets to load the applet and the IE close proble is not appearing!
0
 
LVL 26

Author Comment

by:ksivananth
ID: 17005175
How can I close this question?
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 17168961
PAQed with points refunded (500)

GhostMod
Community Support Moderator
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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…

706 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