- Sep 13, 2001
- 53,765
- 6,645
- 126
So a project I'm working on at work is incorporating a 3rd party library that we're going to use. Included in the library is an applet that we are going to incorporate into our actual application.
The applet is going to be added to a class that extends JDialog and will be on a modal dialog.
As of now, the applet is pretty buggy. I've seen it crash randomly, and I can't get it to happen consistently. I have been told the library we're using now is a beta version and we're gonna have a better one from the 3rd party company soon.
However as of now, sometimes the applet is causing our application to crash. It's not throwing an exception or anything of that nature. It's simply just crashing and makes the application terminate. No errors or anything - the app is just totally killed.
So my question is, is there anyway that I can handle a crash in the applet so that it won't crash the whole application?
I tried putting a try/catch around where the dialog displaying the applet is created and used, but it's not hitting the catch (catching just a general Exception object). That did not work and I still saw it just close out the application.
So does anyone know if there is some other way I can handle this?
Another solution that I did was create another little application that was basically just that dialog pop up, from another JAR file. And when it crashes that way, it at least does not crash our whole application. However I'm trying to keep it all contained in our application if possible, but this quality and crashing isn't looking to good so far.
The applet is going to be added to a class that extends JDialog and will be on a modal dialog.
As of now, the applet is pretty buggy. I've seen it crash randomly, and I can't get it to happen consistently. I have been told the library we're using now is a beta version and we're gonna have a better one from the 3rd party company soon.
However as of now, sometimes the applet is causing our application to crash. It's not throwing an exception or anything of that nature. It's simply just crashing and makes the application terminate. No errors or anything - the app is just totally killed.
So my question is, is there anyway that I can handle a crash in the applet so that it won't crash the whole application?
I tried putting a try/catch around where the dialog displaying the applet is created and used, but it's not hitting the catch (catching just a general Exception object). That did not work and I still saw it just close out the application.
So does anyone know if there is some other way I can handle this?
Another solution that I did was create another little application that was basically just that dialog pop up, from another JAR file. And when it crashes that way, it at least does not crash our whole application. However I'm trying to keep it all contained in our application if possible, but this quality and crashing isn't looking to good so far.
