Originally posted by Jim Yingst:
I don't think this approach will work. You can't have a class which is both a javax.swing.JPanel and a javax.swing.JApplet, since both are classes, and Java does not allow multiple inheritance.
It sounds like you plan to completely replace the official JApplet class with your own, which doesn't sound like a good idea to me. Your code will never be able to run on a standard JVM - you would always need to replace certain jar files with your edited versions. I suppose it could be done, but I'd hope you have complete control over all machines the client runs on, and this "feature" should be very well documented to any other coders who are to work in the environment, as it will confuse the heck out of anyone who doesn't realize you've altered the standard runtime environment.
I don't really understand your reasons for needing a JApplet inside the JInternalFrame, and still think you need to use something other than a JApplet. But as I said, I haven't really used applets that much - maybe there's something I'm missing here.
OK, if despite all my sermonizing you want to do this anyway, the JApplet class is probably in jre\lib\rt.jar under whatever directory you installed your jdk (at least for jdk 1.2.2 and 1.3). You can probably use WinZip or other zip utility to replace the JApplet.class - though you may need to use the jar command to get the manifiest right; I dunno. Good luck.