By Ramakrishna on Jul 12, 2010 in Applet interview questions | 0 Comments
/* Now the applet will have a GUI These are elements to interact with the user. In this example they will not perform any actions. */ import java.awt.*; import java.applet.*; public class GuiExample extends Applet { // A Button to click Button okButton; // A textField to get text input TextField nameField; // A group [...]
By Ramakrishna on Jun 8, 2008 in Applet interview questions | 0 Comments
Q. How can I arrange for different applets on a web page to communicate with each other? A. Name your applets inside the Applet tag and invoke AppletContext’s getApplet ( ) method in your applet code to obtain references to the other applets on the page. Q. How do I select a URL from my [...]
By Ramakrishna on Jun 6, 2008 in Applet interview questions | 0 Comments
Q. What is Applet ? A. Applets are small programs transferred through Internet, automatically installed and run as part of web-browser. Applets implements functionality of a client. Applet is a dynamic and interactive program that runs inside a Web page displayed by a Java-capable browser. The html page loaded into the web browser contains an [...]