import java.awt.*;import java.applet.*;import java.awt.event.*;public class FlyingSkittles extends Applet {        public void init() {                new Mouse(this);        }        public void paint(Graphics g) {// * * * * * * * * * * * * * * * * * * * * * * * * * *// Draw skittles at up to 10 click points// Set the font to Serif, BOLD and 18 point	g.setFont(new Font("Serif",Font.BOLD,18));// Draw the title in the Applet window	g.drawString("FlyingSkittles",100,30);// Draw the title in the Java Console window	System.out.println("FlyingSkittles");// Initialize variablesfinal int MAX = 40; // The Maximum size of the skittleint h,v;  // Horizontal and verticle positions of the click pointint counter; // number of clicksint count;	// number ofcounter = 0;// start the main loop here		while(counter < 10){	// set count to  MAX		count = MAX;	// get the mouse co-ordinates		h = Mouse.getX();		v = Mouse.getY();	// Start inside loop here		do{		// Set color		// If counter is 0 set the color to red			if(counter == 0)				g.setColor(Color.red);		// else if the counter is 1 set the color  to orange			else if(counter == 1)				g.setColor(Color.orange);		// set more colors			else if(counter > 1 && counter < 4)				g.setColor(Color.green);		// Otherwise set the colour to yellow			else				g.setColor(Color.yellow);		// fill oval			g.fillOval(h , v ,  2 * count,  2 * count);		// Decrement count by 10			count = count - 10;		// Set color black			g.setColor(Color.black);		// fill oval			g.fillOval(h , v ,  2 * count,  2 * count);		// Decrement count by 10			count = count - 10;	// End inside loop (i.e. loop while count is greater than 0)	}while(count > 0);	// Increment counter	counter = counter + 1;// End outside while loop}// * * * * * * * * * * * * * * * * * * * * * * * * * * * *     }}