import java.applet.Applet; import java.awt.*; import java.math.*; /*<applet code="pro" height=100 width=100></applet> */ public class pro extends Applet implements Runnable { Thread t; public void init() { t=new Thread(this); t.start(); } public void run() { try { while(true) { repaint(); t.sleep(1000); } }catch(Exception e) { System.out.println(e); } } public void update(Graphics g) { paint(g); } public void paint(Graphics g) { Dimension d=this.getSize(); g.setColor(Color.black); g.fillRect(0,0,d.width,d.height); double x=Math.random()*d.width; double y=Math.random()*d.height; g.setColor(Color.blue); g.fillRect((int)x,(int)y,50,50); } }
this is a net web blog journal diary that is formed and made by a Indian student for faculty,college kids,children and youngsters as a gift for you to hold and carry everywhere and everyplace around the globe.This journal is completely and totally free from price to use and is extremely easy to use and very easy to understand.