Originally posted by Pavan Tummala:
I want to invoke an applet from a class
That's relatively non-standard.
Usually you invoke an applet from an HTML page. I suspect that you mean either...
A) You have an applet running (from an HTML page in a browser) and you want to display some results from a class on the server. The usual flow there is...
- The user brings the web page up in the browser.
- The web page causes the browser to retrieve and start the Applet.
- The Applet opens up another connection back to the server to get data.
- The server sends data back to the Applet to be displayed.
B) You have a standalone (i.e. not client/server) program and you want to put a nice GUI window on the screen to display the results. In this case you want to put up a Frame or something similar, not an Applet.
C) Your program really is a Applet running in a browser but it's basically standalone in that there's no interaction with the server. In this case you already have the applet class, so you don't need to "invoke" it.
(Of course, I could be wrong; you might want to invoke an applet from another class.)
Did this help at all?
Ryan