import java.awt.*;public class communicationDemo extends java.applet.Applet {Image pixelImage;   public void init(){          pixelImage = createImage(512,512);   }      public boolean mouseDown(Event evt, int x, int y){          return true;   }      public boolean mouseUp(Event evt, int x, int y){         return true;   }      public boolean mouseDrag(Event evt, int x, int y){   		 return true;   }      public void update(Graphics g){         paint(g);   }      public void paint(Graphics g){   	     g.drawImage(pixelImage,0,0,this);      }}/*Here's the basic shell of an applet that listens to some events (withoutactually doing anything with them), and draws a blank image whenever itscontext (applet viewer or browser) tells it to repaint itself. The html for this applet should look like:   <html><head></head><body>   <applet code=communicationDemo.class width=512 height=512>     This text shows only if Java is not present or enabled.   </applet>   </body></html>   */