OOPM JAVA - Create applet to draw square with diagonal and circle enclosed in it
EXPERIMENT NO: 16 Aim: Write a program to create applet to draw square with diagonal and circle enclosed in it. Objective: To create an applet (a small web application) for drawing the different graphical shapes by using applet and awt packages available in java. Outcome: Students implemented the java applet for creating a design pattern in terms of graphical shapes. Theory: Applet is a very special type of program that is embedded in a webpage for creating dynamic content. It runs in the browser and works at the client side. Advantage of Applet There are many advantages of applet. They are as follows: It works at client side so it takes less response time. Secured It can be compiled by browsers running under many platforms, such as Linux, Windows, Mac Os etc. Drawback of Applet Plugin is required at client browser to run the applet. The java.applet.Applet class gives 4 life cycle methods and java.awt.Component class gives 1 life cycle methods for an applet. java...