I'm attempting to place an open source applet that displays an SSH terminal (very nice piece of software called JTA) into my application. However, when I run my program I simply get an empty gray box where the internal editor frame is.
Here is my JInternalFrame:
Here is my Applet.class. I noticed it seems to have it's own init(), start(), stop(), etc., so I'm thinking if I can just call it correctly I don't need to init() or start() in my JInternalFrame, which is why I left them out.
Anyone have an idea about why my InternalJFrame isn't showing my applet?
I'm confused. Is de.mud.jta.Applet your class, or the one you found elsewhere? If you found it elsewhere it should come with its own methods that you should leave alone. If it's your class, then which class are you trying to run?
de.mud.jta.Applet is part of the JTA .jar. My understanding of it is that de.mud.jta.Applet does a lot of the stuff you would need to do yourself in your JFrame otherwise.
I'm trying to call Applet.class which will run numerous other classes once it's been correctly called.
The .jar is included in the build, libraries, and all that by the way.
What you posted does not look like a functional applet - it doesn't have operational start, stop and init methods, nor a constructor. Where does that code come from, and what does it have to do with the problem at hand?
OK, OK! So posting all of this has gotten me thinking. (I'm pretty new to this, can you tell?) I have a JTA jar and a JTA developer's JAR, and looking at Applet.java it's VERY different than Applet.class! Perhaps I need to include the developer jar in my libraries and build and call this instead?
I still recommend you look at the link I posted. Even if you end up not using that class, it will give you an idea of how to embed an applet in an application (like, from where and when to call the applet lifecycle methods).