?
Solved

IE browser not closing with JRE1.5 applet

Posted on 2006-06-27
15
Medium Priority
?
917 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
[X]
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
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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:
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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