Running a JAVA applet program
This is to test if JAVA is installed properly. A Java applet program which is compiled without using and IDE. The procedure is as follows Applet Hello world Running it from the console without any IDE A. Creating a class extending the applet class 1. open your favourite editor and type in the following code public class HWApplet extends java.applet.Applet { public void paint(java.awt.Graphics g) { g.drawString("greetings",50,50); } } 2. Save the file as HWApplet.java B. Creating a HTML file to run the applet 1. Open your editor and type in the following code <APPLET code="HWApplet.class" width=350 height=200></APPLET> 2. Save it as HW.html in the same directory as the HWApplet.java file C. Compile the Java program 1. you can compile the Java program by going into the folder containing the file and using Javac javac HWApplet.java D. Running the Applet 1...