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
Solved

IE browser not closing with JRE1.5 applet

Posted on 2006-06-27
15
913 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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 …

839 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