GUI Examples Using Applets »



/* 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 [...]

Applet Interview Question »



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 [...]

Applet Interview Questions »



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 [...]