ksivananth
asked on
IE browser not closing with JRE1.5 applet
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.
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.
whats the applet doing, make sure the start() and stop() methods are implemented correctly
ASKER
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()?
FYI, the same app works fine if the plugin is 1.4.2.
BTW, what makes difference here if I don't implement stop()?
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.
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.
ASKER
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.
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.
your stop() method should be closing any threads that have been started.
ASKER
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.
ASKER
and at the same time, the close button works fine after click the refresh button in the browser.
try and simple applet that does nothing and see if you get same behaviour
may be a general problem with your installation
may be a general problem with your installation
ASKER
any idea what the below exception is and how to workaround,
Exception in thread "Thread-15" java.lang.NullPointerExcep tion: null pData
at sun.awt.windows.WComponent Peer._disp ose(Native Method)
at sun.awt.windows.WComponent Peer.dispo seImpl(Unk nown Source)
at sun.awt.windows.WObjectPee r.dispose( Unknown Source)
at java.awt.Component.removeN otify(Unkn own Source)
at org.jdesktop.jdic.browser. WebBrowser .access$20 1(Unknown Source)
at org.jdesktop.jdic.browser. WebBrowser $2.run(Unk nown Source)
I think, JDIC browser has some issues with 1.5!
Exception in thread "Thread-15" java.lang.NullPointerExcep
at sun.awt.windows.WComponent
at sun.awt.windows.WComponent
at sun.awt.windows.WObjectPee
at java.awt.Component.removeN
at org.jdesktop.jdic.browser.
at org.jdesktop.jdic.browser.
I think, JDIC browser has some issues with 1.5!
no idea sorry
> I think, JDIC browser has some issues with 1.5!
looks like it
> I think, JDIC browser has some issues with 1.5!
looks like it
ASKER
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!
ASKER
How can I close this question?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
function launchApplet(appName,class
var c=document.getElementById(
c.innerHTML="<applet>...</
return false;
}